/* Xtazy layer on top of the Labwolf OS stylesheet (labwolf-os.css). Only new components and the
   Xtazy brand mark live here; reuse Labwolf classes (panel, button, page-heading, insight-kpis,
   os-table-workspace, detail-grid, settings-form, os-form-actions, footnote, notice) wherever possible. */
:root { --xz-accent: #2563eb; --xz-ok: #157347; --xz-warn: #9a5b00; --xz-bad: #b42318; --xz-info: #1d4ed8; }

/* brand mark */
.xz-brand { display: grid; grid-template-columns: 34px 1fr; align-items: center; column-gap: 10px; row-gap: 4px; }
.xz-brand img { width: 34px !important; height: 34px; object-fit: contain; grid-row: span 2; }
.brand > .xz-word { font-size: 23px !important; color: #111210 !important; letter-spacing: .14em !important; font-family: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif; font-size: 22px; letter-spacing: .14em; color: #111210; line-height: 1; }
.brand.xz-brand > span:last-child { font-size: 9px !important; letter-spacing: .16em; }
.xz-foot-link { color: inherit; text-decoration: underline; }

/* sign in */
.xz-signin-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.xz-signin-brand img { width: 44px; height: 44px; object-fit: contain; }
.xz-signin-brand span { font-family: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif; font-size: 30px; letter-spacing: .14em; }
#login-error:empty { display: none; }

/* toast */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: #111210; color: #fff; padding: 11px 16px; border-radius: 9px; font-size: 13px; box-shadow: 0 10px 30px #0003; transition: opacity .15s, transform .15s; z-index: 100; max-width: min(520px, calc(100vw - 32px)); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.error { background: #8f1d14; }

/* actions + pills */
.xz-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.xz-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 550; white-space: nowrap; background: #eef0ea; color: #4b4f47; }
.xz-pill.ok { background: #e3f4e9; color: var(--xz-ok); }
.xz-pill.warn { background: #fdf0d8; color: var(--xz-warn); }
.xz-pill.bad { background: #fde7e5; color: var(--xz-bad); }
.xz-pill.info { background: #e6edfd; color: var(--xz-info); }
.button.danger { background: #b42318; border-color: #b42318; color: #fff; }
.button.danger:hover { background: #912018; }

/* tabs (Labwolf orders-tabs look) */
.xz-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--os-line, #e1e4dc); margin: 0 0 18px; overflow-x: auto; }
.xz-tabs a { padding: 10px 12px; font-size: 13px; color: #656b60; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; }
.xz-tabs a[aria-current] { color: #111210; border-color: #111210; font-weight: 600; }
.xz-tabs a span { font-size: 11px; background: #eef0ea; border-radius: 5px; padding: 1px 6px; }

/* empty state */
.xz-empty { padding: 48px 24px; text-align: center; color: #656b60; }
.xz-empty strong { display: block; color: #111210; font-size: 15px; margin-bottom: 6px; }
.xz-empty p { margin: 0 auto 16px; max-width: 420px; line-height: 1.6; }

/* overview cards */
.xz-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.xz-card { display: grid; gap: 6px; background: #fff; border: 1px solid var(--os-line, #e1e4dc); border-radius: 12px; padding: 18px; }
.xz-card:hover { border-color: #c9ccc2; }
.xz-card span { font-size: 12px; color: #656b60; }
.xz-card strong { font-size: 26px; letter-spacing: -.03em; }
.xz-card small { font-size: 12px; color: #656b60; }
.xz-card.warn strong { color: var(--xz-warn); }
.xz-card.bad strong { color: var(--xz-bad); }

/* table rows that open a record */
.xz-row-link { cursor: pointer; }
.xz-row-link:hover td { background: #fafaf7; }
.xz-pager { display: inline-flex; gap: 10px; align-items: center; margin-left: auto; font-size: 12px; }
.os-table-footer { display: flex; align-items: center; gap: 12px; padding: 12px 20px; }

/* modal */
.xz-modal { border: 0; border-radius: 14px; padding: 0; width: min(520px, calc(100vw - 32px)); box-shadow: 0 30px 80px #0004; }
.xz-modal.wide { width: min(860px, calc(100vw - 32px)); }
.xz-modal::backdrop { background: #11121066; }
.xz-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 0; }
.xz-modal-head h2 { margin: 0; font-size: 16px; }
.xz-modal-body { padding: 18px 22px 22px; display: grid; gap: 14px; }
.xz-x { border: 0; background: transparent; font-size: 22px; line-height: 1; color: #656b60; padding: 4px 8px; }
.xz-confirm-text { line-height: 1.6; margin: 0; }
.xz-narrow { max-width: 460px; }

/* publish status in the top bar */
.xz-publish { background: #f1f1ee; color: #4b4f47; border: 1px solid #e1e4dc; }
.xz-publish button { all: unset; cursor: pointer; }
.xz-publish.ok { background: #e3f4e9; color: var(--xz-ok); border-color: #bfe3cc; }
.xz-publish.busy { background: #e6edfd; color: var(--xz-info); border-color: #c7d6fb; }
.xz-publish.bad { background: #fde7e5; color: var(--xz-bad); border-color: #f6c6c1; }

/* photo grid used by products, custom orders and website content */
.xz-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.xz-photo { position: relative; aspect-ratio: 1; border: 1px solid var(--os-line, #e1e4dc); border-radius: 9px; overflow: hidden; background: #f6f6f3; }
.xz-photo img { width: 100%; height: 100%; object-fit: contain; }
.xz-photo .xz-photo-tools { position: absolute; inset: auto 6px 6px 6px; display: flex; gap: 4px; justify-content: flex-end; }
.xz-drop { border: 1.5px dashed #c9ccc2; border-radius: 10px; padding: 18px; text-align: center; color: #656b60; font-size: 12px; cursor: pointer; display: block; }
.xz-drop:hover, .xz-drop.over { border-color: #111210; color: #111210; background: #fafaf7; }

/* two-column record layout (main + side), same as Labwolf product editor */
.xz-record { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.xz-record > * { display: grid; gap: 18px; min-width: 0; }
@media (max-width: 1000px) { .xz-record { grid-template-columns: 1fr; } }

/* timeline (custom orders, customer history) */
.xz-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.xz-timeline li { display: grid; grid-template-columns: 12px 1fr; gap: 12px; font-size: 13px; }
.xz-timeline li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #111210; margin-top: 5px; }
.xz-timeline small { display: block; color: #656b60; margin-top: 2px; }

/* key/value list */
.xz-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; font-size: 13px; margin: 0; }
.xz-dl dt { color: #656b60; }
.xz-dl dd { margin: 0; }

@media (max-width: 700px) {
  main { padding: 20px 16px 32px !important; }
  .page-heading { flex-wrap: wrap; gap: 12px; }
}

/* Checkbox rows: tick box on the left, wording wraps beside it, whatever form they sit in. */
label.woo-toggle, .settings-form label.woo-toggle, .xz-modal label.woo-toggle { display: flex !important; flex-direction: row; align-items: flex-start; gap: 10px; font-size: 13px; font-weight: 450; line-height: 1.5; }
label.woo-toggle > input[type="checkbox"], label.woo-toggle > input[type="radio"] { flex: none; width: 16px; height: 16px; min-height: 16px; margin: 2px 0 0; padding: 0; }
main:focus, main:focus-visible { outline: none; }

.xz-problems { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13px; line-height: 1.5; }
