/* Custom orders screens. Reuses labwolf-os.css + xtazy.css; everything here is prefixed xzc-. */
.xzc-muted { color: #5f605b; font-size: 13px; }
.xzc-sub { display: block; color: #5f605b; font-size: 12px; margin-top: 2px; }
.xzc-label { display: block; font-size: 13px; color: #40413e; font-weight: 500; margin-bottom: 8px; }
.xzc-h3 { font-size: 13px; font-weight: 650; color: #111210; margin: 18px 0 10px; }
.xzc-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.xzc-break { overflow-wrap: anywhere; }
.xzc-linkbtn { all: unset; color: #2563eb; text-decoration: underline; cursor: pointer; font-size: 12px; }
.xzc-linkbtn:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }

/* ---------------------------------------------------------------- list (#custom) */
/* KPI cards are buttons that filter the list. */
.xzc-kpis { margin: 4px 0 16px; }
.xzc-kpi { display: block; text-align: left; font: inherit; color: inherit; cursor: pointer; padding: 18px 20px; background: #fff; border: 1px solid #dededb; border-radius: 12px; min-width: 0; transition: border-color .12s, box-shadow .12s; }
.xzc-kpi span, .xzc-kpi small { display: block; color: #5f605b; }
.xzc-kpi span { font-size: 13px; }
.xzc-kpi strong { display: block; font-size: 26px; letter-spacing: -.03em; margin: 6px 0 4px; color: #111210; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.xzc-kpi small { font-size: 12px; line-height: 1.5; }
.xzc-kpi:hover { border-color: #b9bbb3; }
.xzc-kpi[aria-pressed="true"] { border-color: #2563eb; box-shadow: inset 0 0 0 1px #2563eb; }
.xzc-kpi.has-late strong { color: #111210; }
.xzc-kpi .is-late { color: var(--xz-bad, #b42318); font-weight: 600; }

/* Step strip: one row of every step with its count. Swipes sideways on narrow screens; never wraps. */
.xzc-strip { background: #fff; border: 1px solid #e0e0db; border-radius: 12px; margin-bottom: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; }
.xzc-strip ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(112px, 1fr)); }
.xzc-strip li { min-width: 0; scroll-snap-align: start; }
.xzc-strip li + li { border-left: 1px solid #ecece8; }
.xzc-seg { all: unset; box-sizing: border-box; display: grid; align-content: start; gap: 4px; width: 100%; height: 100%; min-height: 72px; padding: 13px 14px 12px; cursor: pointer; position: relative; }
.xzc-seg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.xzc-seg:hover { background: #fafaf7; }
.xzc-seg:focus-visible { outline: 2px solid #2563eb; outline-offset: -2px; }
.xzc-seg[aria-pressed="true"] { background: #f3f6fe; }
.xzc-seg[aria-pressed="true"]::after { background: #2563eb; }
.xzc-seg-top { display: flex; align-items: center; gap: 8px; }
.xzc-seg strong { font-size: 20px; font-weight: 650; letter-spacing: -.02em; color: #111210; font-variant-numeric: tabular-nums; line-height: 1.1; }
.xzc-seg.is-zero strong { color: #a3a49e; }
.xzc-seg-label { font-size: 12px; line-height: 1.35; color: #5f605b; }
.xzc-seg[aria-pressed="true"] .xzc-seg-label { color: #111210; font-weight: 600; }
.xzc-late-tag { font-size: 10.5px; font-weight: 650; color: var(--xz-bad, #b42318); background: #fde7e5; border-radius: 999px; padding: 2px 7px; white-space: nowrap; }

/* toolbar */
.xzc-toolbar { gap: 10px 12px; }
.xzc-search { flex: 1 1 260px; }
.xzc-search input { width: 100%; }
.xzc-who select { max-width: 240px; }
.xzc-toolbar .woo-toggle.xzc-closed { font-size: 12.5px; align-items: center; min-height: 38px; color: #40413e; white-space: nowrap; }
.xzc-toolbar .woo-toggle.xzc-closed input { margin: 0; }
.xzc-csv { margin-left: auto; }

/* The list: one grid template shared by the header and every row, so columns line up exactly. */
.xzc-table { container-type: inline-size; }
.xzc-head, .xzc-item {
  display: grid; align-items: center; column-gap: 16px;
  grid-template-columns: 48px minmax(0, 1.7fr) minmax(0, 1fr) 150px 104px 116px 180px;
  grid-template-areas: "thumb order cust stage due money act";
  padding: 0 20px;
}
.xzc-head { min-height: 40px; background: #f8f8f6; border-bottom: 1px solid #e8e8e4; font-size: 11px; font-weight: 600; color: #5f605b; }
.xzc-r { text-align: right; }
.xzc-items { display: grid; }
.xzc-item { position: relative; min-height: 76px; padding-top: 12px; padding-bottom: 12px; row-gap: 4px; border-bottom: 1px solid #ecece8; cursor: pointer; }
.xzc-item:hover { background: #fafaf7; }
.xzc-item.is-late { box-shadow: inset 3px 0 0 var(--xz-bad, #b42318); }
.xzc-c-thumb { grid-area: thumb; }
.xzc-c-order { grid-area: order; min-width: 0; display: grid; gap: 2px; }
.xzc-c-cust { grid-area: cust; min-width: 0; display: grid; gap: 2px; }
.xzc-c-stage { grid-area: stage; min-width: 0; display: grid; gap: 4px; justify-items: start; }
.xzc-c-due { grid-area: due; min-width: 0; }
.xzc-c-money { grid-area: money; min-width: 0; text-align: right; }
.xzc-c-act { grid-area: act; min-width: 0; }

.xzc-thumb { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 9px; overflow: hidden; background: #f1f1ee; border: 1px solid #ecece8; }
.xzc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.xzc-mono { font-size: 15px; font-weight: 650; letter-spacing: .04em; border: 0; font-family: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif; }
.xzc-mono.gold { background: #f3ead6; color: #7a5a1c; }
.xzc-mono.sage { background: #e2ece5; color: #2f5d46; }
.xzc-mono.slate { background: #e5e9f1; color: #3b4a75; }
.xzc-mono.rose { background: #f3e3e1; color: #7a3b3b; }
.xzc-mono.plum { background: #ebe6f1; color: #55467a; }

.xzc-code { font-size: 11.5px; font-weight: 600; color: #5f605b; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.xzc-title { font-size: 13.5px; font-weight: 600; color: #111210; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.xzc-title:hover { text-decoration: underline; }
.xzc-cname { font-size: 13px; color: #111210; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xzc-phone { font-size: 12px; color: #5f605b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; justify-self: start; position: relative; z-index: 1; }
a.xzc-phone:hover { color: #2563eb; text-decoration: underline; }
.xzc-c-stage small { font-size: 11.5px; color: #5f605b; }
.xzc-due { display: grid; gap: 2px; font-size: 13px; color: #111210; font-variant-numeric: tabular-nums; }
.xzc-due small { font-size: 11.5px; color: #5f605b; display: inline-flex; align-items: center; gap: 5px; }
.xzc-due-word { display: none; }
.xzc-due.is-none span { color: #8a8b85; font-size: 12px; }
.xzc-due.is-late, .xzc-due.is-late small { color: var(--xz-bad, #b42318); font-weight: 600; }
.xzc-due.is-soon, .xzc-due.is-soon small { color: var(--xz-warn, #9a5b00); font-weight: 600; }
.xzc-flag { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: var(--xz-bad, #b42318); color: #fff; font-size: 10px; font-weight: 700; line-height: 1; }
.xzc-money-cell { display: grid; gap: 2px; justify-items: end; font-size: 13px; font-variant-numeric: tabular-nums; color: #111210; }
.xzc-money-cell small { font-size: 11.5px; color: #5f605b; }
.xzc-money-cell .is-owed { color: var(--xz-warn, #9a5b00); font-weight: 600; }
.xzc-money-cell .is-paid { color: var(--xz-ok, #157347); font-weight: 600; }
.xzc-act { width: 100%; justify-content: center; white-space: nowrap; min-height: 38px !important; font-size: 12.5px !important; font-weight: 600; }
.xzc-act.primary { background: #eef3ff; border-color: #c9d8fb; color: #1d4ed8; }
.xzc-act.primary:hover { background: #2563eb; border-color: #2563eb; color: #fff; }
.xzc-item.is-late .xzc-act.primary, .xzc-items > .xzc-item:first-child .xzc-act.primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.xzc-act-quiet { color: #5f605b !important; font-weight: 500; }
.xzc-list { overflow: visible; }
.xzc-list .os-table-footer { justify-content: space-between; border-top: 0; font-size: 12px; color: #5f605b; }

/* Medium width (sidebar visible, narrower window): two lines per row. */
@container (max-width: 940px) {
  .xzc-head { display: none; }
  .xzc-item {
    grid-template-columns: 48px minmax(0, 1fr) 146px 108px 170px;
    grid-template-areas: "thumb order stage money act" "thumb cust due money act";
    align-items: start; row-gap: 6px;
  }
  .xzc-c-act, .xzc-c-money { align-self: center; }
  .xzc-c-thumb { align-self: center; }
}
/* Phone width: one card per order. */
@container (max-width: 720px) {
  .xzc-item {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    grid-template-areas: "thumb order stage" "thumb cust cust" "due due money" "act act act";
    padding: 14px 16px; column-gap: 12px; row-gap: 8px;
  }
  .xzc-thumb { width: 52px; height: 52px; }
  .xzc-c-thumb { align-self: start; }
  .xzc-c-stage { justify-items: end; align-self: start; }
  .xzc-c-stage small { display: none; }
  .xzc-c-cust { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; }
  .xzc-c-due, .xzc-c-money { padding-top: 4px; align-self: end; }
  .xzc-due { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; }
  .xzc-due-word { display: inline; }
  .xzc-act { min-height: 44px !important; font-size: 13.5px !important; }
}

/* new order */
.xzc-req { color: #2563eb !important; font-weight: 600; }
.xzc-label small { color: #8a8b85; font-weight: 400; margin-left: 4px; }
.xzc-quote-wrap { margin-top: -4px; }
.xzc-quote-empty { margin: 0 !important; padding: 12px 14px; border: 1px dashed #d6d6d0; border-radius: 10px; font-size: 13px !important; color: #5f605b !important; }
.xzc-quote-empty.is-bad { border-color: #f0b4ad; color: var(--xz-bad, #b42318) !important; }
.xzc-quote { margin: 0; padding: 12px 14px; border-radius: 10px; background: #f8f8f6; border: 1px solid #ecece8; display: grid; gap: 6px; font-size: 13px; }
.xzc-quote div { display: flex; justify-content: space-between; gap: 12px; }
.xzc-quote dt { color: #5f605b; }
.xzc-quote dd { margin: 0; font-variant-numeric: tabular-nums; color: #111210; }
.xzc-quote .is-total { border-top: 1px solid #e3e3de; border-bottom: 1px solid #e3e3de; padding: 6px 0; margin: 2px 0; font-weight: 650; font-size: 14px; }
.xzc-quote .is-total dt { color: #111210; }
.xzc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -6px; }
.xzc-chip { font: inherit; font-size: 12.5px; min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid #dededb; background: #fff; color: #40413e; cursor: pointer; }
.xzc-chip:hover { border-color: #b9bbb3; }
.xzc-chip[aria-pressed="true"] { background: #111210; border-color: #111210; color: #fff; }
.xzc-more summary { cursor: pointer; font-size: 13px; color: #2563eb; min-height: 32px; display: flex; align-items: center; }
.xzc-more[open] summary { margin-bottom: 8px; }
.xzc-create { min-width: 160px; }
.xzc-chosen { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #e0e0db; border-radius: 10px; padding: 12px 14px; }
.xzc-chosen strong { display: block; font-size: 14px; }
.xzc-chosen small { display: block; color: #5f605b; font-size: 12px; margin-top: 2px; }
.xzc-results { display: grid; gap: 6px; }
.xzc-results:empty { display: none; }
.xzc-result { display: grid; text-align: left; gap: 2px; background: #fff; border: 1px solid #e0e0db; border-radius: 10px; padding: 10px 12px; min-height: 44px; cursor: pointer; font: inherit; }
.xzc-result:hover, .xzc-result:focus-visible { border-color: #2563eb; }
.xzc-result small { color: #5f605b; font-size: 12px; }
.xzc-drop { display: grid; justify-items: center; gap: 4px; min-height: 44px; }
.xzc-drop svg { width: 22px; height: 22px; }
.xzc-drop span { font-weight: 600; font-size: 13px; color: #111210; }
.xzc-drop:focus-within { outline: 2px solid #2563eb; outline-offset: 2px; }
.xzc-previews:not(:empty) { margin-top: 10px; }
.xzc-taxline { margin: -6px 0 0; font-size: 13px; color: #40413e; }
.xzc-two { grid-template-columns: 1fr 1fr; gap: 14px; }
.xzc-radios { border: 0; padding: 0; margin: 0; display: grid; gap: 4px; }
.xzc-radios legend { font-size: 13px; color: #40413e; font-weight: 500; margin-bottom: 8px; padding: 0; }
.xzc-radios .woo-toggle { min-height: 40px; display: flex; grid-template-columns: none; }
.xzc-inline { grid-auto-flow: column; justify-content: start; gap: 18px; }

/* order page: status and next step */
.xzc-status-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 24px; }
.xzc-stage-now { display: grid; gap: 4px; }
.xzc-stage-now h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; color: #111210; }
.xzc-eyebrow { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #5f605b; font-weight: 600; }
.xzc-status-meta { display: flex; gap: 28px; margin: 0; }
.xzc-status-meta dt { font-size: 11px; color: #5f605b; margin-bottom: 3px; }
.xzc-status-meta dd { margin: 0; font-size: 13px; color: #111210; }
.xzc-show-sm { display: none; }
.xzc-steps { list-style: none; margin: 18px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.xzc-steps li { display: grid; gap: 6px; font-size: 11px; color: #5f605b; line-height: 1.35; }
.xzc-dot { height: 6px; border-radius: 3px; background: #e0e0db; }
.xzc-steps li.done .xzc-dot { background: #111210; }
.xzc-steps li.current .xzc-dot { background: #2563eb; }
.xzc-steps li.current { color: #111210; font-weight: 650; }
.xzc-steps li.done { color: #40413e; }
.xzc-next { display: flex; gap: 10px; align-items: baseline; margin: 0 0 16px !important; padding: 12px 14px; border-radius: 10px; background: #f1f5ff; color: #1e293b !important; font-size: 14px !important; line-height: 1.5 !important; max-width: none !important; }
.xzc-next strong { flex: none; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #2563eb; }
.xzc-next.is-waiting { background: #fdf6e7; }
.xzc-next.is-waiting strong { color: var(--xz-warn, #9a5b00); }
.xzc-next.is-done { background: #f1faf4; }
.xzc-next.is-done strong { color: var(--xz-ok, #157347); }
.xzc-cancel-link { color: var(--xz-bad, #b42318) !important; font-size: 13px !important; margin-left: auto; align-self: center; padding: 8px 4px; }
.xzc-stage-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.xzc-move { font-size: 14px !important; min-height: 46px !important; padding: 10px 18px !important; }
.xzc-cancel-note { margin: 12px 0 0; }
.xzc-what { margin: 0 0 6px; font-size: 15px; color: #111210; }
.xzc-desc { margin: 0; white-space: pre-wrap; line-height: 1.6; font-size: 14px; color: #40413e; overflow-wrap: anywhere; }
.xzc-photo { margin: 0; }
.xzc-photo img { object-fit: cover; }
.xzc-photo .button.small { min-height: 32px; padding: 4px 10px; box-shadow: 0 1px 3px #0002; }
.panel .xz-drop { margin-top: 12px; }

/* approval */
.xzc-pending, .xzc-approved { margin-top: 16px; border-top: 1px solid #e8e8e4; padding-top: 16px; display: grid; gap: 10px; }
.xzc-pending p { margin: 0; }
.xzc-pending input[readonly] { width: 100%; background: #f6f6f3; font-size: 13px; }
.xzc-approved { border: 1px solid #bfe3cc; background: #f1faf4; border-radius: 12px; padding: 16px; }
.xzc-approved > strong { font-size: 16px; color: var(--xz-ok, #157347); }
.xzc-approved code { font-size: 12px; }
.xzc-approved .footnote { margin: 0; }

/* money */
.xzc-money dd { text-align: right; font-variant-numeric: tabular-nums; }
.xzc-balance { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #f1faf4; }
.xzc-balance.owes { background: #fdf0d8; }
.xzc-balance span { font-size: 13px; color: #40413e; }
.xzc-balance strong { font-size: 20px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.xzc-pays { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.xzc-pays li { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; border-top: 1px solid #eeeeea; padding-top: 8px; }
.xzc-pays small { display: block; color: #5f605b; font-size: 12px; }
.xzc-pays li.is-void > span { text-decoration: line-through; color: #8a8b85; }
.xzc-cust { display: grid; gap: 4px; margin: 0 0 12px; font-size: 13px; }
.xzc-cust a { color: #2563eb; }

/* text modal */
.xzc-big { display: flex !important; justify-content: center; align-items: center; gap: 10px; width: 100%; min-height: 56px !important; font-size: 16px !important; }
.xzc-big svg { width: 20px; height: 20px; }
.xzc-intro { margin: 0; padding: 12px 14px; }
.xzc-override { border-top: 1px solid #e8e8e4; padding-top: 14px; }

@media (max-width: 1000px) {
  .xzc-sticky { position: sticky; bottom: 0; background: rgba(244, 244, 241, .96); padding: 12px 0; z-index: 2; }
  /* one column: money and customer come right after the step, history last */
  .xzc-order > div { display: contents; }
  .xzc-order > div > * { margin-bottom: 0; }
  .xzc-o-stage { order: 1; } .xzc-o-customer { order: 2; } .xzc-o-money { order: 3; } .xzc-o-what { order: 4; }
  .xzc-o-design { order: 5; } .xzc-o-finished { order: 6; } .xzc-o-details { order: 7; } .xzc-o-history { order: 8; }
}
@media (max-width: 700px) {
  .xzc-kpi { padding: 14px; }
  .xzc-kpi strong { font-size: 22px; }
  .xzc-strip { margin: 0 -16px 14px; border-radius: 0; border-left: 0; border-right: 0; scrollbar-width: none; }
  .xzc-strip::-webkit-scrollbar { display: none; }
  .xzc-strip ol { grid-template-columns: repeat(8, minmax(104px, 1fr)); padding-right: 16px; }
  .xzc-seg { min-height: 64px; padding: 11px 12px 10px; }
  .xzc-toolbar { padding: 12px 14px; }
  .xzc-who, .xzc-who select { width: 100%; max-width: none; }
  .xzc-csv { display: none; }
  .xzc .page-heading .xz-actions { flex-direction: column-reverse; }
  .xzc .page-heading .xz-actions > * { width: 100%; justify-content: center; }
  .xzc-hide-sm { display: none; }
  .xzc-show-sm { display: block; }
  span.xzc-show-sm { margin-top: 4px; }
  .xzc-steps { gap: 3px; }
  .xzc-step-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .xzc-stage-actions > .button { flex: 1 1 100%; justify-content: center; }
  .xzc-stage-actions > .button[data-act="jump"], .xzc-stage-actions > .xzc-move-2 { flex: 1 1 40%; }
  .xzc-cancel-link { margin: 4px auto 0; }
  .xzc-status-meta { width: 100%; gap: 20px; padding-top: 10px; border-top: 1px solid #f0f0ec; }
  .xzc-stage-now h2 { font-size: 20px; }
  .xzc-next { font-size: 13.5px !important; }
  .xzc-two { grid-template-columns: 1fr; }
  .xzc-inline { grid-auto-flow: row; }
  .xzc .page-heading .xz-actions { width: 100%; }
}

/* ---------------------------------------------------------------- shared spacing + compact photo drop zones */
.xzc .xz-record .panel { margin-bottom: 0; }
.xzc-lbl { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.xzc-lbl small { font-size: 11.5px; color: #8a8b85; font-weight: 400; }
.xzc-lbl small.xzc-req { color: #1d4ed8 !important; font-weight: 600; }
.xzc .xzc-chip[aria-pressed="true"] { background: #111210 !important; border-color: #111210 !important; color: #fff !important; opacity: 1; }
.xzc .xz-drop.xzc-drop { display: grid; grid-template-columns: auto 1fr; justify-items: start; text-align: left; align-items: center; column-gap: 12px; row-gap: 0; padding: 12px 16px; min-height: 52px; }
.xzc .xz-drop.xzc-drop svg { grid-row: span 2; width: 20px; height: 20px; color: #5f605b; }
.xzc .xz-drop.xzc-drop small { font-size: 12px; color: #5f605b; }
.xzc-o-what .xz-photos + .xz-drop, .xzc-o-design .xz-photos + .xz-drop, .xzc-o-finished .xz-photos + .xz-drop { margin-top: 12px; }
@media (max-width: 700px) {
  .xzc-keep2 { grid-template-columns: 1fr 1fr !important; }
}
@container (min-width: 481px) and (max-width: 720px) {
  .xzc-c-act { justify-self: end; }
  .xzc-act { width: auto; min-width: 220px; }
}
