/* LusoPanel admin – umbau P2b: the pages "MAG-Geräte" and "Enigma2-Geräte" (js/mag.js) on the shared data table (css/umbau-table.css).
   Colours only through the tokens of style.css; no inline styles (the panel's policy allows none). */

/* narrow first column: the round online light */
.tbl td.dev-c-dot{width:1%;text-align:center}

/* "Gesperrt": the badges of the box and of its line */
.dev-state{display:flex;flex-direction:column;align-items:flex-start;gap:.25rem}

/* the MAC cell: the reason a box was refused sits right under it, in red */
.dev-refused{display:flex;align-items:flex-start;gap:.3125rem;margin-top:.25rem;max-width:16rem;font-size:.75rem;line-height:1.3;color:var(--danger);white-space:normal}
.dev-refused .ic{width:.875rem;height:.875rem;flex:none;margin-top:.0625rem}

/* connection info: flag + address, provider, channel, "mehr" */
.tbl td.dev-c-conn{min-width:11rem;max-width:18rem;white-space:normal;line-height:1.3}
.dev-conn{display:grid;gap:.1875rem;min-width:0}
.dev-conn-ip{display:flex;align-items:center;gap:.375rem;min-width:0}
.dev-conn-ip .mono{overflow:hidden;text-overflow:ellipsis}
.dev-conn-isp{font-size:.8125rem;color:var(--text-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dev-conn-ch{display:flex;align-items:center;gap:.375rem;min-width:0;font-size:.8125rem;color:var(--text)}
.dev-conn-ch>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dev-conn-more{display:grid;gap:.1875rem;margin-top:.125rem;padding:.375rem .5rem;border-radius:var(--r-xs);background:var(--gold-softer);font-size:.75rem}
.dev-conn-more[hidden]{display:none}
.dev-conn-kv{display:grid;gap:.0625rem;overflow-wrap:anywhere}
.dev-more{justify-self:start;padding:0;border:0;background:none;color:var(--accent);font:inherit;font-size:.75rem;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.dev-more:hover{color:var(--text)}
.dev-more:focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:var(--r-xs)}
.dev-flag{display:inline-grid;place-items:center;flex:none;min-width:1.25rem;font-size:1rem;line-height:1}
.dev-flag .ic{width:1rem;height:1rem;color:var(--text-3)}

/* last watched, notes */
.dev-watched{display:grid;gap:.0625rem;min-width:0}
.dev-watched-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:14rem}
.dev-note{display:inline-block;max-width:16rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}

/* dialogs: sections with a small heading, hints that warn, channel suggestions */
.dev-section{display:grid;gap:.5rem}
.dev-section>h4{margin:0;font-size:var(--fs-label);font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--text-3)}
.dev-section .table-wrap{max-height:18rem;overflow:auto}
.hint.dev-warn{color:var(--warn)}
.dev-chan-hits{display:flex;flex-wrap:wrap;gap:.375rem;margin-top:.375rem}
.dev-chan-hits:empty{display:none}
.dev-chan-none{padding:.1875rem .5rem}
@media (max-width:600px) {
  .dev-refused,.dev-note,.dev-watched-name{max-width:none}
  .tbl td.dev-c-conn{max-width:none}
}
