/* columns.css: Zweispaltiges Layout: Liste links, Details rechts. Teil der Weboberfläche, Reihenfolge siehe index.html. */

/* ==========================================================================
   Spalten
   ========================================================================== */
#main { flex: 1; display: flex; min-width: 0; height: 100vh; }
.col { flex: 1 1 50%; min-width: 0; overflow-y: auto; background: var(--panel); }
#main.has-detail #col-list { flex: 0 0 var(--list-w, 50%); }
#col-detail { background: var(--panel); }
/* Ansichten mit Karten (Dashboard, Gruppen, Status) liegen auf der Hintergrundfarbe */
#col-list:has(.dash, .groups, .sys) { background: var(--bg); }

/* Griffe zum Ziehen zwischen den Bereichen */
.resizer { flex: none; width: 6px; margin: 0 -3px; position: relative; z-index: 5; cursor: col-resize; touch-action: none; }
.resizer::after { content: ""; position: absolute; inset: 0 2px; background: transparent; transition: background .15s; }
.resizer:hover::after, .resizer:focus-visible::after, body.resizing .resizer.dragging::after { background: var(--accent); }
.resizer:focus-visible { outline: none; }
#resize-sidebar { background: var(--sidebar); }
#main:not(.has-detail) #resize-detail { display: none; }
#resize-detail { border-left: 1px solid var(--border); }
body.resizing { cursor: col-resize; user-select: none; }
body.resizing iframe, body.resizing .col { pointer-events: none; }
.col.hidden { display: none; }
.col-header { position: sticky; top: 0; z-index: 2; background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--border); padding: 16px 20px 12px; }
.col-header h1 { margin: 0 0 10px; font-size: 19px; font-weight: 650; letter-spacing: -.2px; display: flex; align-items: center; gap: 10px; }
.col-header h1 .count { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 0 8px; line-height: 20px; letter-spacing: 0; }
.col-header .close-detail { margin-left: auto; width: 30px; height: 30px; border-radius: var(--radius); background: none; border: 0; font-size: 20px; line-height: 1; cursor: pointer; color: var(--muted); }
.col-header .close-detail:hover { background: var(--row-hover); color: var(--text); }
.col-body { padding: 0 0 28px; }
