/* center screen styles (team round, 23.11.2026). Loaded after screens.css; prefix screen-only classes. */
/* Genie Center: a tab of the device page (W1-C). */

/* ---------- Orders: toolbar ---------- */
.gc-toolbar { flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.gc-toolbar .input-wrap { width: 280px; max-width: 100%; }
.gc-toolbar .chips { flex-wrap: wrap; }
.gc-live { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; color: var(--accent); white-space: nowrap; }
.gc-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s infinite; }

/* ---------- Orders: five-column board (1500 px and wider) or table (below) ---------- */
.gc-board { display: none; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-3); }
.gc-table { display: block; }
@media (min-width: 1500px) {
  .gc-board { display: grid; }
  .gc-table { display: none; }
}
.gc-col { --gc-col: var(--text-muted); min-width: 0; display: flex; flex-direction: column; gap: var(--sp-2); background: var(--bg-surface); border: 1px solid var(--border-subtle); border-top: 3px solid var(--gc-col); border-radius: var(--r-lg); padding: var(--sp-3); height: clamp(360px, calc(100vh - 430px), 620px); }
.gc-col-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); font-size: var(--fs-xs); font-weight: 700; color: var(--text-secondary); white-space: nowrap; }
.gc-col-body { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: var(--sp-2); }
.gc-col-empty { padding: var(--sp-5) var(--sp-2); text-align: center; font-size: var(--fs-xs); color: var(--text-muted); }
.gc-card { flex: none; min-width: 0; background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: var(--r-md); padding: var(--sp-3); cursor: pointer; transition: border-color var(--dur-fast); }
.gc-card:hover { border-color: var(--border-strong); }
.gc-card.fresh { border-color: var(--accent); }
.gc-card-slide { font-family: var(--font-mono); font-variant-ligatures: none; font-weight: 700; font-size: var(--fs-xs); overflow-wrap: break-word; }
.gc-card-bm { margin-top: 2px; font-size: var(--fs-xs); color: var(--text-muted); overflow-wrap: break-word; }
.gc-card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px var(--sp-2); margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--text-muted); }
.gc-card-where { margin-top: 2px; font-size: var(--fs-xs); color: var(--text-secondary); overflow-wrap: break-word; }
.gc-card-where.bad { color: var(--danger); }

.gc-otbl { table-layout: fixed; width: 100%; }
.gc-otbl col.c-slide { width: 150px; }
.gc-otbl col.c-order { width: 90px; }
.gc-otbl col.c-state { width: 136px; }
.gc-otbl col.c-upd { width: 110px; }
.gc-otbl tr.fresh td:first-child { box-shadow: inset 3px 0 0 var(--accent); }

/* ---------- Order drawer ---------- */
.gc-kv { grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); }
.gc-kv dt { overflow-wrap: break-word; }
.gc-req .tbl { table-layout: fixed; width: 100%; }
.gc-req col.c-col { width: 180px; }
.gc-empty-val { font-family: var(--font-ui); font-style: italic; }

/* ---------- Catalog ---------- */
.gc-catalog { display: flex; flex-direction: column; gap: var(--sp-4); }
.gc-catalog > .grid > .card { min-width: 0; }
.gc-codes { display: flex; flex-direction: column; gap: var(--sp-1); }
.gc-code-row { display: grid; grid-template-columns: minmax(64px, auto) 16px minmax(48px, auto) minmax(0, 1fr); align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); padding: 4px 0; border-bottom: 1px solid var(--border-subtle); }
.gc-code-row:last-child { border-bottom: none; }
.gc-code-row svg { width: 14px; height: 14px; color: var(--text-muted); }
.gc-code { font-weight: 700; }
.gc-flat-head { padding: var(--sp-4) var(--sp-5) 0; flex-wrap: wrap; align-items: flex-start; }
.gc-flat-head > div:first-child { min-width: 0; flex: 1 1 320px; }
.gc-search { width: 260px; max-width: 100%; }
.gc-bm-wrap, .gc-err-wrap { border-top: 1px solid var(--border-subtle); }
.gc-btbl, .gc-etbl { table-layout: fixed; width: 100%; }
.gc-btbl col.c-id { width: 110px; }
.gc-btbl col.c-clone { width: 130px; }
.gc-btbl col.c-prot { width: 140px; }
.gc-btbl col.c-codes { width: 180px; }
.gc-btbl td .pill { margin: 2px 0; }

/* ---------- Stations and Inventory ---------- */
.gc-res > .card { min-width: 0; }
.gc-res .card-head { flex-wrap: wrap; }
.gc-stainer + .gc-stainer { margin-top: var(--sp-4); }
.gc-stainer-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2); margin-bottom: var(--sp-2); font-size: var(--fs-sm); }
.gc-stations { display: grid; grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); gap: var(--sp-1); }
.gc-station { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 5px; font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 700; font-variant-numeric: tabular-nums; border: 1px solid transparent; }
.gc-station.st-A, .gc-station.st-E { background: var(--bg-elevated); color: var(--text-secondary); border-color: var(--border-default); }
.gc-station.st-P { background: var(--primary-soft); color: #93C5FD; }
.gc-station.st-U { background: var(--paused-soft); color: var(--text-disabled); }
.gc-lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.gc-lg.st-A { background: var(--bg-elevated); border: 1px solid var(--border-strong); }
.gc-lg.st-P { background: var(--primary-soft); border: 1px solid #93C5FD; }
.gc-lg.st-U { background: var(--paused-soft); border: 1px solid var(--text-disabled); }
.gc-itbl { table-layout: fixed; width: 100%; }
.gc-itbl col.c-num { width: 104px; }
.gc-itbl col.c-num + col.c-num { width: 76px; }
.gc-itbl col.c-exp { width: 104px; }
.gc-itbl col.c-st { width: 124px; }
/* Below 1500 px the two cards stack, so the inventory table keeps its columns without scrolling. */
@media (max-width: 1499px) { .gc-res { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Settings ---------- */
.gc-settings { align-items: start; }
.gc-settings > * { min-width: 0; }
.gc-stack { gap: var(--sp-4); }
.gc-form { display: flex; flex-direction: column; gap: var(--sp-4); }
.gc-tpl-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-2); }
.gc-maxlen .input { width: 120px; }
.gc-parts span { white-space: nowrap; }
.gc-ro-value { padding: var(--sp-3); border: 1px solid var(--border-subtle); border-radius: var(--r-md); background: var(--bg-elevated); }
.gc-ro-value .t { font-weight: 700; font-size: var(--fs-sm); }
.gc-ro-value .d { margin-top: 2px; font-size: var(--fs-xs); color: var(--text-muted); }
.gc-ro-state { flex: none; font-weight: 700; font-size: var(--fs-sm); }
.gc-err-wrap { margin-top: var(--sp-4); }
.gc-etbl col.c-code { width: 76px; }
.gc-etbl col.c-sev { width: 96px; }
.gc-etbl col.c-reply { width: 120px; }
.gc-etbl col.c-act { width: 84px; }
.gc-act { text-align: right; }
.card.flat + .card.flat, .gc-settings + .card.flat { margin-top: var(--sp-4); }

/* ---------- Folders card (device Health tab) and menu ---------- */
