/* ===== Components for orders, suppliers and quote tabs =====
   Uses only the planner's existing tokens, so dark mode works too. */

/* Status chips: two new variants beside .warn / .good / .accent */
.chip.info{background:var(--blue);color:var(--ink)}
.chip.solid{background:var(--head);color:var(--accent-ink)}
.chip.draft{background:transparent;border:1px dashed var(--muted);color:var(--muted)}

/* Supplier swatch: the florist picks one of five palette colours per supplier */
.sup{display:inline-flex;align-items:center;gap:7px;font-weight:600;white-space:nowrap}
.sup i{width:10px;height:10px;border-radius:50%;flex:none;box-shadow:0 0 0 1px rgba(59,31,26,.25)}
:root{--sup-blue:#3D6AA8}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--sup-blue:#7FA3D6}}
:root[data-theme="dark"]{--sup-blue:#7FA3D6}
.sup-blue i,.sup-blue.fill{background:var(--sup-blue)}
.sup-olive i,.sup-olive.fill{background:var(--olive)}
.sup-salmon i,.sup-salmon.fill{background:var(--salmon)}
.sup-butter i,.sup-butter.fill{background:var(--butter)}
.sup-rust i,.sup-rust.fill{background:var(--rust)}

/* Stat tiles across the top of the Orders tab */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}
.stat{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:14px 16px;display:flex;flex-direction:column;gap:4px}
.stat .v{font-family:var(--display);font-weight:700;font-size:28px;line-height:1.1;color:var(--head);font-variant-numeric:tabular-nums}
.stat.hl{background:var(--butter)}

/* A stacked meter (by supplier, budget vs actual) */
.meter.stack{display:flex;gap:2px;height:12px}
.meter.stack>span{height:100%}

/* Status steps: Draft → Sent → Confirmed → Received → Paid */
.steps{list-style:none;margin:0;padding:0;display:flex;gap:4px;font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.steps li{flex:1;display:flex;flex-direction:column;gap:6px;min-width:0}
.steps li::before{content:"";height:6px;border-radius:99px;background:var(--surface-2)}
.steps li.done{color:var(--head)}.steps li.done::before{background:var(--head)}
.steps li.now{color:var(--head)}.steps li.now::before{background:var(--butter);box-shadow:inset 0 0 0 1.5px var(--head)}

/* Tabs inside a quote (Pieces / Proposal / Flowers & orders / Notes): the journal underline tabs */
.subtabs{display:flex;gap:2px;box-shadow:inset 0 -1px 0 var(--line);overflow-x:auto;scrollbar-width:none}
.subtabs a,.subtabs button{flex:0 0 auto;border:0;background:transparent;padding:10px 14px;font:700 11px var(--body);letter-spacing:.12em;text-transform:uppercase;color:var(--muted);border-bottom:2px solid transparent;text-decoration:none;cursor:pointer}
.wrap .subtabs a{color:var(--muted)}
.wrap .subtabs a[aria-current="page"],.subtabs button[aria-selected="true"]{color:var(--head);border-bottom-color:var(--head)}

/* Segmented choice (buy from: United Floral / River & Sea / Ask rep) */
.seg{display:inline-flex;border:1px solid var(--head);border-radius:999px;overflow:hidden}
.seg button{border:0;background:transparent;color:var(--head);font:600 12px var(--body);padding:6px 11px;cursor:pointer;white-space:nowrap}
.seg button[aria-pressed="true"]{background:var(--head);color:var(--accent-ink)}

/* Rows that need a look */
tr.attn td{background:var(--pinktint)}

/* Photo placeholder / thumbnail */
.thumb{width:44px;height:44px;border-radius:8px;flex:none;background:var(--surface-2);object-fit:cover}
.thumb.lg{width:60px;height:60px}
.drop{border:1px dashed var(--head);border-radius:10px;padding:14px;text-align:center;font-size:13px;color:var(--head);background:var(--bg)}

/* Quote header */
.qhead{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:flex-end;justify-content:space-between}
.qhead h2{font-size:32px;line-height:1.05}
.qmeta{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;font-size:14px;margin-top:6px}

/* No supplier yet: an empty ring */
.sup-none i,.sup-none.fill{background:transparent;box-shadow:inset 0 0 0 1.5px var(--muted)}
/* Status steps you can click */
.steps button{all:unset;cursor:pointer;font:inherit;letter-spacing:inherit;text-transform:inherit;color:inherit;padding:2px 0}
.steps button:focus-visible{outline:2px solid var(--accent-text);outline-offset:2px}
