﻿@charset "UTF-8";
/* ==================================================================
   pedigree.css - NBRP-Rat Pedigree charting tool (/nbr/pedigree)
   Gleiche Farben und Formen wie /nbr/phenome, /nbr/strains, /nbr/strainsx.
   Rahmen (Kopf, Menü, Knöpfe, Fuß): ../nbrp-ui/nbrp.css
   Breiten: >= 1000 px PC | 720-999 px Tablet | < 720 px Telefon
   ================================================================== */

:root {
  --nbr-red:       #8b2a2c;
  --nbr-red-text:  #e5e5e5;
  --nbr-data:      #e6e6e6;
  --nbr-alt:       #e1d8d8;
  --nbr-text:      #383838;
  --nbr-link:      #700002;
  --nbr-hover:     #007038;
  --nbr-dark:      #848284;
  --pg-blue:       #4b5a7a;
}

/* ---------- Seite ---------- */
body { font-family: Tahoma, Verdana, "Meiryo", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; font-size: 14px; line-height: 1.4; color: #333333; }
.nbrp-content > .nbr-page { max-width: none; padding: 0 0 20px; }
a:link, a:visited { color: var(--nbr-link); text-decoration: none; }
a:hover, a:active, a:focus-visible { color: var(--nbr-hover); }
input, select, button { font-family: inherit; }
p { margin: 0 0 10px; }

/* ---------- Unternavigation (wie strainsx / phenome) ---------- */
.nbr-subnav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0 12px; }
.nbr-subnav-cap { font-weight: bold; color: var(--nbr-red); margin-right: 2px; white-space: nowrap; }
.nbr-subnav a { display: inline-block; padding: 4px 11px; border: 1px solid #cdc4c4; border-radius: 14px; background: #fff; color: #333; font-size: 13px; line-height: 1.3; }
.nbr-subnav a:hover, .nbr-subnav a:focus-visible { background: #f3e9e9; color: var(--nbr-red); border-color: #d9a9a9; }
.nbr-subnav a.is-current { background: var(--nbr-red); border-color: var(--nbr-red); color: #fff; font-weight: bold; }

/* ---------- Karte, roter Balken ---------- */
.nbr-card { display: block; margin: 0 0 16px; }
h1.nbr-bar, h2.nbr-bar { margin: 0; background: var(--nbr-red); color: var(--nbr-red-text); font-size: 16px; font-weight: bold; padding: 7px 12px; border-radius: 4px 4px 0 0; line-height: 1.3; }
h2.pg-bar2 { font-size: 14px; padding: 6px 12px; }
.pg-body { background: var(--nbr-data); border-radius: 0 0 4px 4px; padding: 12px 14px 12px; }
.pg-intro { margin: 0 0 12px; }
.pg-error { display: block; color: #c00000; font-weight: bold; margin: 0 0 10px; }
.pg-info { margin: 10px 0 0; font-size: 12px; color: #666; }

/* ---------- Auswahl: Bezugsstamm (Filter + Liste), Tabelle, Knöpfe - am PC in einer Zeile ---------- */
.pg-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 18px; }
.pg-field { display: block; margin: 0; }
.pg-field-strain { flex: 1 1 340px; min-width: 0; }
.pg-field-opt { padding-bottom: 7px; white-space: nowrap; }
.pg-cap { display: block; font-weight: bold; font-size: 12.5px; color: var(--nbr-text); margin: 0 0 3px; }
.pg-pick { display: flex; gap: 6px; }
.pg-filter { flex: 0 1 11em; min-width: 7em; font-size: 14px; padding: 5px 6px; border: 1px solid var(--nbr-dark); border-radius: 2px; }
.pg-select { flex: 1 1 auto; min-width: 0; font-size: 14px; padding: 5px 6px; border: 1px solid var(--nbr-dark); border-radius: 2px; background: #fff; color: #222; box-sizing: border-box; }
.pg-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Knöpfe */
.pg-btn, .pg-tool { display: inline-block; background: var(--nbr-red); color: var(--nbr-red-text); border: 0; border-radius: 4px; padding: 7px 16px; font-weight: bold; font-size: 13px; cursor: pointer; line-height: 1.3; text-decoration: none; }
.pg-btn:hover { background: #a33a3c; color: #fff; }
.pg-btn-main { font-size: 15px; padding: 9px 22px; }
.pg-btn-2 { background: var(--pg-blue); }
.pg-btn-2:hover { background: #5d6e94; color: #fff; }
a.pg-btn:link, a.pg-btn:visited { color: var(--nbr-red-text); }

/* ---------- Diagramm ---------- */
.pg-chartcard { background: #fff; border: 1px solid #ddd; border-radius: 4px; }
.pg-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px; padding: 8px 10px; background: var(--nbr-alt); border-radius: 4px 4px 0 0; }
.pg-nav { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.pg-nav .pg-btn { padding: 6px 12px; font-size: 13px; }
.pg-current { font-size: 13px; color: var(--nbr-text); }
.pg-current b { color: var(--nbr-red); }
.pg-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pg-tool { background: #fff; color: #333; border: 1px solid #cdc4c4; border-radius: 14px; padding: 4px 11px; font-weight: normal; display: inline-flex; align-items: center; gap: 5px; }
.pg-tool:hover, .pg-tool:focus-visible { background: #f3e9e9; color: var(--nbr-red); border-color: #d9a9a9; }
.pg-tool.is-on { background: var(--nbr-red); color: #fff; border-color: var(--nbr-red); }
.pg-chart { padding: 8px; overflow: auto; -webkit-overflow-scrolling: touch; background: #fff; }
.pg-chart img { display: block; max-width: 100%; height: auto; margin: 0 auto; }   /* einpassen: ganzes Diagramm sichtbar, Klickflächen werden mitgerechnet */
.pg-chart.is-1to1 img { max-width: none; margin: 0; }                              /* 1:1: Originalgröße (800 px), Kasten rollt */
.pg-hint { margin: 0; padding: 6px 10px 8px; font-size: 12px; color: #666; }

/* ---------- Datentabelle: Liste in Spalten ---------- */
.pg-tablecard { background: #fff; border: 1px solid #ddd; border-radius: 4px; }
.pg-tablebox { padding: 10px 14px 12px; }
.pg-list { margin: 0; padding: 0; list-style: none; column-width: 250px; column-gap: 28px; column-rule: 1px solid #e4e4e4; }
.pg-list li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 4px; border-bottom: 1px solid #efefef; font-size: 13px; break-inside: avoid; }
.pg-list li:hover { background: #f6eeee; }
.pg-list li.is-ref { background: #f3e9e9; font-weight: bold; }
.pg-list a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-val { color: #555; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Tablet ---------- */
@media (max-width: 999px) {
  .pg-field-strain { flex-basis: 100%; }
}
/* ---------- Telefon ---------- */
@media (max-width: 719px) {
  .pg-body { padding: 10px 10px 12px; }
  .pg-pick { flex-wrap: wrap; }
  .pg-filter { flex: 1 1 100%; }
  .pg-select { flex-basis: 100%; }
  .pg-form { gap: 8px 14px; }
  .pg-actions { width: 100%; }
  .pg-actions .pg-btn-main { flex: 1 1 auto; text-align: center; }
  .pg-toolbar { padding: 8px; }
  .pg-nav { width: 100%; justify-content: space-between; }
  .pg-current { order: -1; width: 100%; }
  .pg-chart { padding: 4px; }
  .pg-tablebox { padding: 8px 10px 10px; }
  .pg-list { column-width: 200px; column-gap: 16px; }
}

/* ---------- Druck: nur das Diagramm (und die Tabelle, falls eingeblendet) ---------- */
@media print {
  @page { margin: 10mm; }
  .nbrp-header, #nbrpNav, #nbrpTabs, .nbrp-footer, .nbr-subnav, .pg-card, .pg-toolbar, .pg-hint { display: none !important; }
  .nbrp-page, .nbrp-content, .nbr-page { display: block !important; width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
  .pg-chartcard, .pg-tablecard { border: 0; }
  .pg-chart { overflow: visible !important; padding: 0 !important; }
  .pg-chart img { max-width: 100% !important; width: 100% !important; height: auto !important; }
  .pg-list { column-width: 200px; }
}
