/* --- Fázis F — KONTÉNERLABOR BLOKK --- */
.block.container-lab-block {
    background: #f0f9ff;
    border: 1px solid #7dd3fc;
    padding: 12px;
  }
  .container-lab-placeholder {
    padding: 30px 20px;
    text-align: center;
    color: #0c4a6e;
    background: #e0f2fe;
    border: 1px dashed #7dd3fc;
    border-radius: 8px;
    font-size: 0.92rem;
    line-height: 1.6;
  }
  .container-lab-placeholder-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 10px;
  }
  .container-lab-placeholder-info {
    margin-top: 10px;
    font-size: 0.82rem;
    color: #0369a1;
  }
  .container-lab-loading {
    padding: 40px 20px;
    text-align: center;
    color: #0369a1;
    font-style: italic;
  }
  .container-lab-error {
    padding: 20px;
    text-align: center;
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.5;
  }
  .cl-section {
    margin-bottom: 18px;
  }
  .cl-section:last-child { margin-bottom: 0; }
  .cl-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0c4a6e;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .cl-section-count {
    font-size: 0.72rem;
    font-weight: 700;
    background: #bfdbfe;
    color: #1e40af;
    padding: 1px 8px;
    border-radius: 10px;
  }
  .cl-network-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .cl-network-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 10px;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    font-size: 0.88rem;
  }
  .cl-network-row-actions {
    display: flex;
    gap: 4px;
    align-items: center;
  }
  .cl-network-row-actions .icon-btn.danger {
    color: #dc2626;
  }
  .cl-network-row-actions .icon-btn.danger:hover:not(:disabled) {
    background: #fee2e2;
    border-color: #fca5a5;
  }
  .cl-network-name {
    font-weight: 700;
    color: #0c4a6e;
    font-family: "Consolas", "Courier New", monospace;
  }
  .cl-network-subnet {
    color: #0369a1;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.82rem;
  }
  .cl-network-container-count {
    font-size: 0.75rem;
    color: #64748b;
    padding: 1px 8px;
    background: #f1f5f9;
    border-radius: 10px;
  }
  .cl-container-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .cl-container-row {
    padding: 10px 12px;
    background: white;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    font-size: 0.88rem;
  }
  .cl-container-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
  }
  .cl-container-name {
    font-weight: 700;
    color: #0c4a6e;
    font-family: "Consolas", "Courier New", monospace;
  }
  .cl-container-image {
    font-size: 0.78rem;
    color: #64748b;
    font-family: "Consolas", "Courier New", monospace;
  }
  .cl-container-status {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .cl-container-status.running { background: #dcfce7; color: #166534; }
  .cl-container-status.exited { background: #fee2e2; color: #991b1b; }
  .cl-container-status.created { background: #f1f5f9; color: #475569; }
  .cl-container-status.paused { background: #fef3c7; color: #92400e; }
  .cl-container-actions {
    display: flex;
    gap: 4px;
    margin-left: auto;
  }
  .cl-container-nets {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
  }
  .cl-net-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    background: #eff6ff;
    color: #1e40af;
    padding: 2px 8px;
    border-radius: 10px;
    font-family: "Consolas", "Courier New", monospace;
    border: 1px solid #bfdbfe;
  }
  .cl-net-pill-name { font-weight: 700; }
  .cl-net-pill-ip { color: #0369a1; }
  .cl-net-pill-remove {
    cursor: pointer;
    color: #dc2626;
    font-weight: 700;
    margin-left: 2px;
    padding: 0 2px;
    border-radius: 3px;
    transition: background 0.12s;
  }
  .cl-net-pill-remove:hover { background: #fee2e2; }
  .cl-form-row {
    display: flex;
    gap: 6px;
    align-items: stretch;
    flex-wrap: wrap;
  }
  .cl-form-row input,
  .cl-form-row select {
    padding: 7px 10px;
    border: 1px solid #7dd3fc;
    border-radius: 6px;
    font-size: 0.88rem;
    font-family: inherit;
    background: white;
    color: #0c4a6e;
    outline: none;
    transition: border-color 0.12s, box-shadow 0.12s;
  }
  .cl-form-row input:focus,
  .cl-form-row select:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
  }
  .cl-form-row input { flex: 1; min-width: 120px; }
  .cl-form-row select { min-width: 140px; }
  .cl-form-row .cl-form-btn {
    padding: 7px 14px;
    background: #0284c7;
    color: white;
    border: 1px solid #0369a1;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background 0.12s;
  }
  .cl-form-row .cl-form-btn:hover:not(:disabled) { background: #0369a1; }
  .cl-form-row .cl-form-btn:disabled {
    background: #cbd5e1;
    border-color: #94a3b8;
    color: #64748b;
    cursor: not-allowed;
  }
  .cl-form-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #0369a1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
  }
  .cl-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
  }
  @media (max-width: 600px) {
    .cl-form-grid { grid-template-columns: 1fr; }
  }
  .cl-info-box {
    margin-top: 6px;
    padding: 6px 10px;
    font-size: 0.78rem;
    color: #0369a1;
    background: #e0f2fe;
    border-radius: 4px;
    line-height: 1.4;
  }
  .cl-info-box code {
    background: white;
    padding: 1px 5px;
    border-radius: 3px;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.9em;
    color: #0c4a6e;
  }
  .cl-limit-hint {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 4px;
  }
  .btn.labor-step-btn { background: #0891b2; }
  .btn.labor-step-btn:hover { background: #0e7490; opacity: 1; }
  .icon-btn.cl-refresh-btn { color: #0284c7; }
  .icon-btn.cl-refresh-btn:hover { background: #e0f2fe; }

/* --- Fázis F fix4 — Image pull progress bar --- */
.cl-progress-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 10100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .cl-progress-modal {
    background: white;
    border-radius: 12px;
    max-width: 520px;
    width: 100%;
    padding: 26px 28px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  }
  .cl-progress-icon {
    font-size: 2.5rem;
    line-height: 1;
    text-align: center;
    margin-bottom: 12px;
  }
  .cl-progress-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0c4a6e;
    text-align: center;
    margin-bottom: 6px;
  }
  .cl-progress-subtitle {
    font-size: 0.88rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 18px;
  }
  .cl-progress-bar-wrap {
    background: #e2e8f0;
    border-radius: 8px;
    height: 22px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
    border: 1px solid #cbd5e1;
  }
  .cl-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0ea5e9 0%, #0284c7 100%);
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 30px;
  }
  .cl-progress-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #64748b;
    font-family: "Consolas", "Courier New", monospace;
    margin-bottom: 16px;
  }
  .cl-progress-status {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.82rem;
    color: #0c4a6e;
    font-family: "Consolas", "Courier New", monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 16px;
    min-height: 20px;
  }
  .cl-progress-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
  }
  .cl-progress-note {
    font-size: 0.78rem;
    color: #94a3b8;
    text-align: center;
    font-style: italic;
    margin-top: 12px;
    line-height: 1.5;
  }

  @media print {
    .step-collapse-btn { display: none !important; }
    #btnCollapseAll, #btnExpandAll { display: none !important; }
    .step.collapsed .step-instructions,
    .step.collapsed .button-row,
    .step.collapsed .sections {
      display: block !important;
    }
    .step.collapsed .section-config-panel { display: none !important; }

    /* PDF export: tiszta nyomtatási nézet */
    .save-bar,
    .footer,
    .review-banner,
    .warning-banner,
    .locked-banner,
    .fixed-name-banner,
    .modal-backdrop,
    .clipboard-popup,
    .text-settings-popup,
    .text-settings-backdrop,
    .image-settings-popup,
    .block-settings-popup,
    .terminal-menu,
    .annotator-context-menu,
    .md-table-context-menu,
    .step-divider-controls,
    .button-row,
    .step-actions,
    .section-tools,
    .block-toolbar,
    .empty-hint,
    .image-dropzone,
    .file-dropzone,
    .note-dropzone,
    .topology-resize-handle,
    .hint-field-wrap { display: none !important; }

    body { padding: 0; background: white; }
    .container { max-width: 100%; }
    .step {
      box-shadow: none;
      page-break-inside: avoid;
      border-left: 1px solid #cbd5e1;
      border-right: 1px solid #cbd5e1;
    }
    .section { page-break-inside: avoid; }
    .block { page-break-inside: avoid; }
    .block.terminal-block .terminal-frame-wrap { display: none !important; }
    .block.terminal-block .terminal-info { display: none !important; }
    .block.terminal-block::after {
      content: '🖥️ Terminál – nyomtatásban nem elérhető';
      display: block;
      padding: 12px;
      text-align: center;
      color: #94a3b8;
      font-style: italic;
      background: #f8fafc;
      border-radius: 6px;
      margin: 8px 0;
    }
    .block.vnc-block .vnc-screen { display: none !important; }
    .block.vnc-block .vnc-info { display: none !important; }
    .block.vnc-block::after {
      content: '🖥️ VNC – nyomtatásban nem elérhető';
      display: block;
      padding: 12px;
      text-align: center;
      color: #94a3b8;
      font-style: italic;
      background: #f8fafc;
      border-radius: 6px;
      margin: 8px 0;
    }
    .block.browser-block .browser-frame-wrap { display: none !important; }
    .block.browser-block .browser-info { display: none !important; }
    .block.browser-block::after {
      content: '🌐 Beágyazott böngésző – nyomtatásban nem elérhető';
      display: block;
      padding: 12px;
      text-align: center;
      color: #94a3b8;
      font-style: italic;
      background: #f8fafc;
      border-radius: 6px;
      margin: 8px 0;
    }
    .block.youtube-block .youtube-frame-wrap { display: none !important; }
    .block.youtube-block .youtube-info { display: none !important; }
    .block.youtube-block::after {
      content: '▶️ YouTube videó – nyomtatásban nem elérhető';
      display: block;
      padding: 12px;
      text-align: center;
      color: #94a3b8;
      font-style: italic;
      background: #f8fafc;
      border-radius: 6px;
      margin: 8px 0;
    }
    .block.video-block .video-frame-wrap { display: none !important; }
    .block.video-block .video-info { display: none !important; }
    .block.video-block::after {
      content: '🎬 Videó – nyomtatásban nem elérhető';
      display: block;
      padding: 12px;
      text-align: center;
      color: #94a3b8;
      font-style: italic;
      background: #f8fafc;
      border-radius: 6px;
      margin: 8px 0;
    }
  }

  @media (max-width: 700px) { .modal-templates { grid-template-columns: 1fr; } }
  @media (max-width: 600px) {
    .button-row { margin-left: 0; margin-right: 0; }
    .section-config-panel { margin-left: 0; }
    .sections { margin-left: 0; margin-right: 0; }
    .step-instructions { margin-left: 0; margin-right: 0; }
    .step-header h2 { min-width: 0; text-align: left; }
    .annotator-modal .modal-actions { flex-wrap: wrap; min-height: auto; }
    .annotator-size-panel { position: static; transform: none; width: 100%; max-width: none; margin-bottom: 8px; }
    .note-input-modal .note-checkbox-row { white-space: normal; }
    .activity-summary { grid-template-columns: 1fr 1fr; }
    .activity-log-list-header { display: none; }
    .activity-log-list { overflow-x: visible; }
    .activity-log-list-row {
      grid-template-columns: 1fr; gap: 6px; font-size: 0.85rem;
      min-width: 0; padding: 12px 14px; border-bottom: 2px solid #f1f5f9;
    }
    .activity-log-list-row .log-time-start { text-align: left; font-size: 0.78rem; color: #94a3b8; }
    .activity-log-list-row .log-time-start::before { content: 'Kikattintás: '; font-weight: 600; color: #64748b; font-family: "Segoe UI", sans-serif; }
    .activity-log-list-row .log-time-end::before { content: 'Visszatérés: '; font-weight: 600; color: #64748b; font-family: "Segoe UI", sans-serif; }
    .activity-log-list-row .log-time-end { text-align: left; }
    .activity-log-list-row .log-away { text-align: left; font-size: 1rem; }
    .activity-log-list-row .log-away::before { content: 'Távollét: '; font-weight: 600; color: #64748b; font-family: "Segoe UI", sans-serif; }
    .activity-log-list-row .log-type-wrap { justify-content: flex-start; }
    .activity-log-list-row .log-type-wrap::before { content: 'Típus: '; font-weight: 600; color: #64748b; font-family: "Segoe UI", sans-serif; margin-right: 4px; align-self: center; }
  }

/* ============================================================
   modosit_373.py — A becsukható szekciók vizuális fejlesztése
   ============================================================
   A <details>/<summary> szekciók:
     - fehér háttér, alsó border, padding
     - a fejléc jobb oldalán kör alakú ki-becsukó gomb (▾/▸)
     - a Topológia szekció kék bal oldali vonallal kiemelve
     - a szekciók között erősebb elválasztás
   ============================================================ */

.cl-collapsible {
  margin-bottom: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.cl-collapsible > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.92rem;
  color: #1e293b;
  cursor: pointer;
  user-select: none;
  list-style: none;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  transition: background 0.15s;
}

.cl-collapsible > summary::-webkit-details-marker {
  display: none;
}

.cl-collapsible > summary::-moz-list-bullet {
  display: none;
}

.cl-collapsible > summary:hover {
  background: #f1f5f9;
}

.cl-collapsible[open] > summary {
  border-bottom: 1px solid #e2e8f0;
}

.cl-collapsible > summary .cl-collapse-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.cl-collapsible > summary .cl-collapse-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cl-collapsible > summary .cl-section-count {
  background: #eef2ff;
  color: #4f46e5;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.cl-collapsible > summary .cl-collapse-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  pointer-events: none;
}

.cl-collapsible > summary:hover .cl-collapse-toggle {
  background: #eef2ff;
  color: #4f46e5;
  border-color: #c7d2fe;
}

.cl-collapsible[open] > summary .cl-collapse-toggle {
  transform: rotate(0deg);
}

.cl-collapsible:not([open]) > summary .cl-collapse-toggle {
  transform: rotate(-90deg);
}

.cl-collapsible-body {
  padding: 16px;
  background: #ffffff;
}

/* A Topológia szekció kiemelése: kék bal oldali vonal. */
.cl-collapsible.cl-topo-details {
  border-left: 4px solid #3b82f6;
}

.cl-collapsible.cl-topo-details > summary {
  background: #eff6ff;
  border-bottom-color: #bfdbfe;
}

.cl-collapsible.cl-topo-details > summary:hover {
  background: #dbeafe;
}

.cl-collapsible.cl-topo-details > summary .cl-collapse-toggle {
  background: #ffffff;
  border-color: #93c5fd;
  color: #2563eb;
}

.cl-collapsible.cl-topo-details > summary:hover .cl-collapse-toggle {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* A topoDiv a Topológia <details> belsejében: nincs felső elválasztás. */
.cl-collapsible.cl-topo-details .cl-collapsible-body > .cl-topology-inline {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: none !important;
}

/* A hálózat/konténer szekciók belső cl-section-jei ne legyenek extra kerettel. */
.cl-collapsible-body > .cl-section {
  border: none;
  padding: 0;
  margin-bottom: 12px;
}

.cl-collapsible-body > .cl-section:last-child {
  margin-bottom: 0;
}

// modosit_373.py: a becsukható szekciók vizuális fejlesztése.

/* ============================================================
   modosit_392.py — Saját panel (div + JS) nyitás/csukás.
   A <details> helyett .cl-collapsible div, data-open="true/false"
   attribútummal. A böngésző nem jegyzi meg a div állapotát.
   ============================================================ */

.cl-collapsible {
  margin-bottom: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.cl-collapsible-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.92rem;
  color: #1e293b;
  cursor: pointer;
  user-select: none;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  transition: background 0.15s;
}

.cl-collapsible-header:hover {
  background: #f1f5f9;
}

.cl-collapsible-header .cl-collapse-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.cl-collapsible-header .cl-collapse-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cl-collapsible-header .cl-section-count {
  background: #eef2ff;
  color: #4f46e5;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.cl-collapsible-header .cl-collapse-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.15s;
  pointer-events: none;
}

.cl-collapsible[data-open="true"] .cl-collapsible-header .cl-collapse-toggle {
  transform: rotate(0deg);
}

.cl-collapsible[data-open="false"] .cl-collapsible-header .cl-collapse-toggle {
  transform: rotate(-90deg);
}

.cl-collapsible-body {
  display: none;
  padding: 16px;
  background: #ffffff;
}

.cl-collapsible[data-open="true"] .cl-collapsible-body {
  display: block;
}

/* A Topológia szekció kiemelése. */
.cl-collapsible.cl-topo-details {
  border-left: 4px solid #3b82f6;
}

.cl-collapsible.cl-topo-details .cl-collapsible-header {
  background: #eff6ff;
  border-bottom-color: #bfdbfe;
}

.cl-collapsible.cl-topo-details .cl-collapsible-header:hover {
  background: #dbeafe;
}

/* A topoDiv a Topológia panel belsejében: nincs felső elválasztás. */
.cl-collapsible.cl-topo-details .cl-collapsible-body > .cl-topology-inline {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: none !important;
}

/* A hálózat/konténer szekciók belső cl-section-jei ne legyenek extra kerettel. */
.cl-collapsible-body > .cl-section {
  border: none;
  padding: 0;
  margin-bottom: 12px;
}

.cl-collapsible-body > .cl-section:last-child {
  margin-bottom: 0;
}

// modosit_392.py: saját panel (div + JS) nyitás/csukás.

/* ============================================================
   modosit_393.py — A cl-collapsible panel CSS biztosítása.
   A .cl-collapsible-body alapból rejtve, csak data-open="true"
   esetén látszik. A régi <details> stílust felülírja.
   ============================================================ */

.cl-collapsible > .cl-collapsible-body {
  display: none !important;
}

.cl-collapsible[data-open="true"] > .cl-collapsible-body {
  display: block !important;
}

/* A régi <details> alapú stílus semlegesítése. */
.cl-collapsible > summary {
  display: none !important;
}

// modosit_393.py: a cl-collapsible CSS biztosítása.
