/* --- DIÁK PÉLDÁNY FEJLÉC (csak a body.header-diak esetén) --- */
body.header-diak .header-title-row {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 20px; flex-wrap: wrap;
  }
  body.header-diak .header-title-row .header-top-left {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    flex: 1; min-width: 0;
  }
  body.header-diak .header-title-row .header-top-right {
    display: flex; flex-direction: column; align-items: stretch;
    gap: 8px; flex-shrink: 0;
    width: 260px;
  }
  body.header-diak h1#pageTitle {
    margin: 0;
  }
  body.header-diak #hallgatoFieldWrap {
    display: flex; flex-direction: column;
    width: 100%;
  }
  body.header-diak .header-hallgato-input {
    width: 100%; max-width: none;
    padding: 8px 12px; border: 1px solid var(--border);
    border-radius: 8px; font-size: 0.95rem; font-family: inherit;
    background: white; text-align: right; font-weight: 600;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    box-sizing: border-box;
  }
  body.header-diak .header-hallgato-input.header-readonly {
    background: #f1f5f9 !important;
    color: #475569 !important;
    cursor: default !important;
    text-align: right;
  }
  body.header-diak .header-hallgato-input:focus {
    outline: 2px solid #93c5fd; border-color: transparent;
  }
  body.header-diak .header-hallgato-select {
    width: 100%; max-width: none;
    padding: 8px 12px; border: 1px solid var(--border);
    border-radius: 8px; font-size: 0.95rem; font-family: inherit;
    background: white; text-align: right; font-weight: 600;
    color: #1e293b; cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    box-sizing: border-box;
  }
  body.header-diak .header-hallgato-select.header-readonly {
    background: #f1f5f9 !important;
    color: #475569 !important;
    cursor: default !important;
  }
  body.header-diak .header-created {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    row-gap: 5px;
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    font-size: 0.82rem;
    line-height: 1.45;
    color: #475569;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    text-align: left;
    white-space: nowrap;
    box-sizing: border-box;
    width: 100%;
  }
  body.header-diak .header-created .created-label {
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
    justify-self: start;
  }
  body.header-diak .header-created .created-value {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: #334155;
    justify-self: start;
  }
  body.header-diak .header-created .created-value.empty {
    color: #cbd5e1;
  }
  body.header-diak .header-leiras-row {
    margin-top: 16px;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    border-radius: 6px;
    padding: 8px 14px;
  }
  body.header-diak .header-leiras-label {
    font-size: 0.8rem; font-weight: 700; color: #1e40af;
    text-transform: uppercase; letter-spacing: 0.04em;
    white-space: nowrap; flex-shrink: 0;
  }
  body.header-diak .header-leiras-input {
    flex: 1; min-width: 200px;
    padding: 8px 12px; border: 1px solid #bfdbfe;
    border-radius: 6px; font-size: 1rem; font-family: inherit;
    background: white; color: #1e293b; font-weight: 600;
  }
  body.header-diak .header-leiras-input:focus {
    outline: 2px solid #3b82f6; border-color: transparent;
  }
  body.header-diak .header-leiras-input.header-readonly {
    background: #f8fafc !important;
    color: #475569 !important;
    cursor: default !important;
    border-color: #cbd5e1 !important;
    font-weight: 500;
  }

/* ============================================================
   Diák dátumok a jobb felső sarokban (modosit_191.py)
   ============================================================ */

#studentDatesRow {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid #e2e8f0;
  font-size: 0.78rem;
  color: #475569;
}

#studentDatesRow .student-date-item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

#studentDatesRow .student-date-label {
  font-size: 0.85rem;
  line-height: 1;
  opacity: 0.7;
}

#studentDatesRow .student-date-value {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: #1e293b;
}

#studentDatesRow .student-date-value.empty {
  color: #94a3b8;
  font-style: italic;
}

/* Mobilon a dátumok elrejtése */
@media (max-width: 700px) {
  #studentDatesRow {
    display: none !important;
  }
}

/* ============================================================
   modosit_514.py — A diák dátumainak végleges megjelenítése
   a fejléc jobb felső sarkában.
   ============================================================ */
#studentDatesRow {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px 16px;
  max-width: 100%;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid #e2e8f0;
  font-size: 0.78rem;
  color: #475569;
}

#studentDatesRow .student-date-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

#studentDatesRow .student-date-label {
  font-size: 0.85rem;
  line-height: 1;
  opacity: 0.7;
}

#studentDatesRow .student-date-value {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: #1e293b;
}

#studentDatesRow .student-date-value.empty {
  color: #94a3b8;
  font-style: italic;
}

@media (max-width: 900px) {
  #studentDatesRow {
    justify-content: flex-start;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    width: 100%;
  }
}

/* ============================================================
   modosit_515.py — Önálló dátum- és statisztika panel a fejléc alatt.
   ============================================================ */
#studentDatesPanel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  border: 1px solid #c7d2fe;
  border-left: 4px solid #4f46e5;
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 16px;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.85rem;
  color: #3730a3;
}
#studentDatesPanel .sdp-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
#studentDatesPanel .sdp-icon { font-size: 1rem; line-height: 1; }
#studentDatesPanel .sdp-label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  color: #4f46e5;
}
#studentDatesPanel .sdp-value {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e1b4b;
}
#studentDatesPanel .sdp-value.empty {
  color: #a5b4fc;
  font-style: italic;
  font-weight: 400;
}
#studentDatesPanel .sdp-duration {
  margin-left: auto;
  padding: 4px 12px;
  background: #ffffff;
  border: 1px solid #c7d2fe;
  border-radius: 20px;
}
#studentDatesPanel .sdp-duration .sdp-label { color: #4338ca; }
#studentDatesPanel .sdp-duration .sdp-value { color: #4338ca; font-weight: 700; }

/* ============================================================
   modosit_516.py — Önálló dátum- és statisztika panel
   ============================================================ */
#studentDatesPanel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  border: 1px solid #c7d2fe;
  border-left: 4px solid #4f46e5;
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 16px;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.85rem;
  color: #3730a3;
}
#studentDatesPanel .sdp-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
#studentDatesPanel .sdp-icon { font-size: 1rem; line-height: 1; }
#studentDatesPanel .sdp-label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  color: #4f46e5;
}
#studentDatesPanel .sdp-value {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e1b4b;
}
#studentDatesPanel .sdp-value.empty {
  color: #a5b4fc;
  font-style: italic;
  font-weight: 400;
}
#studentDatesPanel .sdp-duration {
  margin-left: auto;
  padding: 4px 12px;
  background: #ffffff;
  border: 1px solid #c7d2fe;
  border-radius: 20px;
}
#studentDatesPanel .sdp-duration .sdp-label { color: #4338ca; }
#studentDatesPanel .sdp-duration .sdp-value { color: #4338ca; font-weight: 700; }
