/* lis screen styles (team round, 23.11.2026). Loaded after screens.css; prefix screen-only classes. */

/* ---- List: one card per LIS connection ----
   Two cards per row at 992 px, three from about 1130 px. Names wrap (never cut); the state line wraps too. */
.lis-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: var(--sp-4); align-items: stretch; }
.lis-grid > * { min-width: 0; }
.lis-card { display: flex; flex-direction: column; gap: var(--sp-4); padding: 16px; min-width: 0; }
.lis-card-hd { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: start; gap: 12px; }
.lis-card-title { min-width: 0; padding-top: 1px; }
.lis-card-name { font-weight: 700; font-size: var(--fs-md); line-height: 1.35; overflow-wrap: break-word; }
.lis-card-kind { margin-top: 2px; font-size: var(--fs-xs); color: var(--text-muted); }
.lis-card-hd > .pill { margin-top: 2px; }

.lis-rows { display: flex; flex-direction: column; gap: 6px; }
.lis-row { display: grid; grid-template-columns: 16px 64px minmax(0, 1fr); align-items: start; gap: 8px; font-size: var(--fs-sm); line-height: 1.45; }
.lis-row-ic { display: inline-flex; align-items: center; height: 19px; color: var(--text-muted); }
.lis-row-ic svg { width: 14px; height: 14px; }
.lis-row-k { color: var(--text-muted); }
.lis-row-v { min-width: 0; color: var(--text-primary); overflow-wrap: normal; }
.lis-row-v.mono { font-size: var(--fs-xs); line-height: 19px; }
.lis-row.off .lis-row-v { color: var(--text-disabled); }

.lis-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--border-subtle); }
.lis-state { display: flex; align-items: flex-start; gap: 6px; min-width: 0; font-size: var(--fs-xs); line-height: 1.45; color: var(--text-muted); }
.lis-state svg { width: 13px; height: 13px; flex: none; margin-top: 2px; }
.lis-state.error { color: #FCA5A5; }
.lis-state.ok svg { color: var(--text-muted); }
.lis-card-foot .btn { flex: none; }
.lis-card.down { border-color: rgba(239, 68, 68, 0.35); }

/* ---- Form ---- */
/* A value that is shown, not edited: plain text at control height, aligned with the inputs beside it. */
.lis-ro { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-height: var(--control-h); font-size: var(--fs-sm); color: var(--text-primary); }
.lis-ro .mono { font-size: var(--fs-xs); }
.lis-choice { min-width: 0; }

/* Number with its unit: the box is as wide as its content, the unit sits beside it in one style. */

/* Label and value rows (Virtual LIS facts, receive rules): every value starts in the same column and wraps. */
.lis-kv { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 10px 16px; margin: 0; font-size: var(--fs-sm); line-height: 1.5; }
.lis-kv dt { color: var(--text-muted); }
.lis-kv dd { margin: 0; min-width: 0; color: var(--text-primary); }
.lis-kv dd.mono { font-size: var(--fs-xs); line-height: 19.5px; }

.lis-note { color: #FCD34D; }
.lis-hint-top { margin-bottom: 8px; }
.lis-codes { table-layout: fixed; width: 100%; }
.lis-codes th:nth-child(1), .lis-codes td:nth-child(1) { width: 120px; }
.lis-codes th:nth-child(3), .lis-codes td:nth-child(3) { width: 48px; text-align: right; }

/* Used By: one row per device, fixed columns so the status badges line up. */
.lis-used { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; }

/* Connection test window: step names in the UI font, timings in mono on the right. */
.lis-test .lis-test-t { min-width: 0; }
.lis-spin { width: 13px; height: 13px; }
/* Retries: the check-timing hint covers both First Check After and Longest Wait. */
.lis-probe-hint { margin-top: 6px; font-size: var(--fs-xs); color: var(--text-disabled); }
/* TLS toggle uses the same Optional label as fields. */
.inline-toggle .t .opt { margin-left: 8px; font-size: var(--fs-xs); font-weight: 500; color: var(--text-disabled); }
