/* ==========================================================
   GMA Jägerlog – responsive Facelift
   Funktion bleibt unverändert
   ========================================================== */

:root {
  --gma-blue: #007eae;
  --gma-blue-dark: #005f86;
  --gma-blue-soft: #eef8fc;
  --gma-border: #bfd1db;
  --gma-text: #17313f;
  --gma-row: #f8fbfd;
  --gma-row-alt: #eef4f7;
  --gma-green-soft: #e8f7dd;
  --gma-shadow: 0 10px 28px rgba(0, 70, 100, .11);
}

/* Neues Hauptmenü */
.gma-nav {
  position: relative;
  z-index: 1000;
  width: min(1380px, calc(100% - 28px));
  margin: 10px auto 0;
  font-family: Arial, Helvetica, sans-serif;
}

.gma-nav > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--gma-border);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(0, 70, 100, .08);
}

.gma-nav li {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gma-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 9px;
  color: #16455c;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.gma-nav > ul > li > a {
  background: #f2f7f9;
  border: 1px solid #d5e1e7;
}

.gma-nav > ul > li > a:hover,
.gma-nav > ul > li:hover > a {
  color: #fff;
  background: var(--gma-blue);
  border-color: var(--gma-blue);
}

.gma-nav ul ul {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 230px;
  margin: 0;
  padding: 7px;
  list-style: none;
  border: 1px solid var(--gma-border);
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--gma-shadow);
}

.gma-nav li:hover > ul,
.gma-nav li:focus-within > ul {
  display: block;
}

.gma-nav ul ul a {
  padding: 8px 10px;
  font-weight: 600;
}

.gma-nav ul ul a:hover {
  color: #fff;
  background: var(--gma-blue);
}

.gma-nav .logout {
  margin-left: auto;
}

.gma-nav .logout > a {
  color: #8a2330;
}

/* Seite */
.dspchslog-page {
  width: min(1460px, calc(100% - 24px));
  margin: 20px auto 36px;
  color: var(--gma-text);
  font-family: Arial, Helvetica, sans-serif;
}

.dspchslog-page .dspchslog-shell,
.dspchslog-page .dspchslog-layout {
  width: 100% !important;
}

.dspchslog-page .dspchslog-layout {
  table-layout: fixed !important;
}

.dspchslog-page .dspchslog-layout > tbody > tr > td:first-child {
  width: 210px;
  padding-right: 14px;
  vertical-align: top;
}

.dspchslog-page .dspchslog-layout > tbody > tr > td:nth-child(2) {
  width: auto;
  min-width: 0;
  padding-left: 4px;
  vertical-align: top;
}

.dspchslog-header {
  margin-bottom: 16px;
  border: 1px solid var(--gma-border);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff 0%, #f2f9fc 100%);
  box-shadow: var(--gma-shadow);
  overflow: hidden;
  margin: 0 auto 12px auto !important;
}


.dspchslog-header td {
  padding: 20px 28px;
}

.dspchslog-header h1 {
  margin: 0;
  color: var(--gma-blue);
  font-size: clamp(27px, 3vw, 38px);
  letter-spacing: 1px;
}

.dspchslog-header h4 {
  margin: 0;
  color: var(--gma-blue-dark);
  font-size: clamp(20px, 2vw, 27px);
}

/* Navigation oberhalb/unterhalb der Tabelle */
.dspchslog-page .dspchslog-layout > tbody > tr > td:nth-child(2) > a,
.dspchslog-page .dspchslog-layout > tbody > tr > td:nth-child(2) font a,
.dspchslog-footer-nav a {
  display: inline-block;
  margin: 3px 2px;
  padding: 5px 9px;
  border: 1px solid #b9ced9;
  border-radius: 999px;
  background: #fff;
  color: var(--gma-blue-dark) !important;
  text-decoration: none;
  line-height: 1.1;
}

.dspchslog-page .dspchslog-layout > tbody > tr > td:nth-child(2) > a:hover,
.dspchslog-page .dspchslog-layout > tbody > tr > td:nth-child(2) font a:hover,
.dspchslog-footer-nav a:hover {
  background: var(--gma-blue-soft);
  border-color: var(--gma-blue);
}

/* Tabelle */
.dspchslog-table-wrap {
  width: 80%;
  overflow-x: auto;
  border-radius: 14px;
  box-shadow: var(--gma-shadow);
  scrollbar-width: thin;
}

.dspchslog-table {
  width: 80% !important;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0;
  background: #fff;
  font-size: 12px;
}

.dspchslog-table th.tt2 {
  padding: 8px 5px;
  background: linear-gradient(180deg, #0789bb 0%, #00749f 100%);
  color: #fff;
  border-color: rgba(255,255,255,.23) !important;
  font-size: 12px;
}

.dspchslog-table td.tt2,
.dspchslog-table td.tt1 {
  padding: 6px 5px;
  border-color: #b9c9d1 !important;
  background: var(--gma-row);
  vertical-align: middle;
}

.dspchslog-table tr:nth-child(even) td.tt2,
.dspchslog-table tr:nth-child(even) td.tt1 {
  background: var(--gma-row-alt);
}

.dspchslog-table tr:hover td.tt2,
.dspchslog-table tr:hover td.tt1 {
  background: #fff7d7;
}

.dspchslog-table a {
  color: #005f9f;
  font-weight: 700;
  text-underline-offset: 2px;
}


.dspchslog-table img {
  vertical-align: middle;
}

.dspchslog-table td:last-child a {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--gma-blue);
  color: #fff !important;
  text-decoration: none;
  font-size: 11px;
}

.dspchslog-table th.spot,
.dspchslog-table th.spotr {
  padding: 7px;
  background: var(--gma-green-soft);
  color: #24491f;
  border-color: #a9c99b !important;
}

.dspchslog-table tr:last-child th.tt1 {
  padding: 8px;
  background: linear-gradient(180deg, #0789bb 0%, #00749f 100%);
  color: #fff;
  border-color: #08729b !important;
}

/* Bereich unterhalb der Tabelle */
.dspchslog-footer-panel {
  margin-top: 16px;
  padding: 15px 18px;
  border: 1px solid var(--gma-border);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff 0%, #f5fafc 100%);
  box-shadow: 0 7px 20px rgba(0, 70, 100, .08);
}

.dspchslog-legend {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-left: 4px solid var(--gma-blue);
  border-radius: 8px;
  background: var(--gma-blue-soft);
  line-height: 1.45;
}

.dspchslog-footer-nav {
  text-align: center;
}

/* Linkes Statistikmenü etwas kompakter */
.dspchslog-layout > tbody > tr > td:first-child table {
  width: 100%;
  border-spacing: 0 4px;
}

/* Breakpoints */
@media (max-width: 1260px) {
  .dspchslog-page {
    width: calc(100% - 16px);
  }

  .dspchslog-page .dspchslog-layout > tbody > tr > td:first-child {
    width: 185px;
  }

  .dspchslog-table {
    min-width: 880px;
    font-size: 11px;
  }

  .dspchslog-table th.tt2,
  .dspchslog-table td.tt2,
  .dspchslog-table td.tt1 {
    padding-left: 4px;
    padding-right: 4px;
  }
}

@media (max-width: 900px) {
  .gma-nav > ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gma-nav .logout {
    margin-left: 0;
  }

  .gma-nav > ul > li > a {
    text-align: center;
  }

  .dspchslog-layout,
  .dspchslog-layout > tbody,
  .dspchslog-layout > tbody > tr,
  .dspchslog-layout > tbody > tr > td {
    display: block;
    width: 100% !important;
  }

  .dspchslog-page .dspchslog-layout > tbody > tr > td:first-child {
    width: 100% !important;
    padding-right: 0;
    margin-bottom: 18px;
  }

  .dspchslog-page .dspchslog-layout > tbody > tr > td:nth-child(2) {
    padding-left: 0;
  }

  .dspchslog-header td {
    display: block;
    text-align: center;
    padding: 13px 18px;
  }
}

@media (max-width: 560px) {
  .gma-nav {
    width: calc(100% - 12px);
  }

  .gma-nav > ul {
    grid-template-columns: 1fr;
  }

  .gma-nav ul ul {
    position: static;
    min-width: 0;
    box-shadow: none;
    margin-top: 4px;
  }

  .dspchslog-page {
    width: calc(100% - 10px);
  }

  .dspchslog-footer-panel {
    padding: 12px;
  }
}


/* ==========================================================
   Nachpolitur v3: kompakter Kopf, volle Tabellenbreite,
   moderne Periodenauswahl
   ========================================================== */

.dspchslog-page {
  margin-top: 12px;
}

.dspchslog-header {
  margin-bottom: 12px;
  border-radius: 13px;
}

.dspchslog-header td {
  padding: 12px 22px;
}

.dspchslog-header h1 {
  font-size: clamp(25px, 2.4vw, 34px);
  line-height: 1.05;
}

.dspchslog-header h4 {
  font-size: clamp(19px, 1.8vw, 25px);
  line-height: 1.05;
}

.dspchslog-layout {
  table-layout: fixed;
}

.dspchslog-page .dspchslog-layout > tbody > tr > td:first-child {
  width: 180px !important;
  min-width: 180px;
}

.dspchslog-page .dspchslog-layout > tbody > tr > td:nth-child(2) {
  width: calc(100% - 229px) !important;
  max-width: none !important;
  padding-right: 18px;
  box-sizing: border-box;
}


.dspchslog-table-wrap {
  display: block;
  width: 100% !important;
  max-width: none !important;
  overflow-x: auto;
}

.dspchslog-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: auto;
}

.dspchslog-table th,
.dspchslog-table td {
  white-space: normal;
}


/* Alte Linkausgabe bleibt ohne JavaScript benutzbar. */
.dspchslog-period-nav {
    width: 95%;
    margin: 0 auto 12px auto;
    text-align: center;
}

/* Moderne Auswahl nach JS-Enhancement */
.dspchslog-period-nav.is-enhanced {
  display: grid;
  gap: 8px;
}

.dspchslog-period-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.dspchslog-year-select-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-left: 10px;
  border: 1px solid #b9ced9;
  border-radius: 999px;
  background: #fff;
  color: #38596a;
  font-size: 12px;
  font-weight: 700;
}

.dspchslog-year-select {
  min-width: 92px;
  padding: 7px 30px 7px 10px;
  border: 0;
  border-left: 1px solid #d6e2e8;
  border-radius: 0 999px 999px 0;
  background: #f5fafc;
  color: var(--gma-blue-dark);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  outline: none;
}

.dspchslog-year-select:focus {
  box-shadow: 0 0 0 3px rgba(0, 126, 174, .16);
}

.dspchslog-period-action,
.dspchslog-month-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin: 0 !important;
  padding: 6px 11px !important;
  border: 1px solid #b9ced9 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--gma-blue-dark) !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition: .15s ease;
}

.dspchslog-period-action:hover,
.dspchslog-month-button:hover {
  border-color: var(--gma-blue) !important;
  background: var(--gma-blue-soft) !important;
  transform: translateY(-1px);
}

.dspchslog-months {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.dspchslog-month-button.is-active {
  border-color: var(--gma-blue) !important;
  background: var(--gma-blue) !important;
  color: #fff !important;
  box-shadow: 0 3px 9px rgba(0, 104, 145, .20);
}

.dspchslog-footer-panel {
  width: auto;
}

@media (max-width: 1100px) {
  .dspchslog-page .dspchslog-layout > tbody > tr > td:first-child {
    width: 185px !important;
    min-width: 185px;
  }

  .dspchslog-page .dspchslog-layout > tbody > tr > td:nth-child(2) {
    width: calc(100% - 199px) !important;
  }

  .dspchslog-table {
    min-width: 820px !important;
  }
}

@media (max-width: 900px) {
  .dspchslog-page .dspchslog-layout > tbody > tr > td:first-child,
  .dspchslog-page .dspchslog-layout > tbody > tr > td:nth-child(2) {
    width: 100% !important;
    min-width: 0;
  }

  .dspchslog-table {
    min-width: 860px !important;
  }

  .dspchslog-header td {
    padding: 10px 16px;
  }
}

/* obere Navigation */
.dspchslog-period-nav-top {
    width: 80%;
    margin: 0 auto 12px auto;
}


/* FINAL: Breite des rechten Inhalts */
.dspchslog-table-wrap {
    width: 95% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.dspchslog-table {
    width: 100% !important;
}

/* Auswahl oben auf dieselbe Breite */
.dspchslog-period-nav-top {
    width: 95% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}


@media (min-width: 901px) {
    .dspchslog-page .dspchslog-layout > tbody > tr > td:first-child {
        width: 180px !important;
        min-width: 180px !important;
    }
}



/* ==========================================================
   FINAL: Jägerlog-Breite
   ========================================================== */

.dspchslog-layout {
    width: 100% !important;
    table-layout: fixed;
}

.dspchslog-page .dspchslog-layout > tbody > tr > td:first-child {
    width: 210px !important;
    min-width: 210px !important;
}

.dspchslog-page .dspchslog-layout > tbody > tr > td:nth-child(2) {
    width: auto !important;
    min-width: 0 !important;
    padding-left: 14px;
    padding-right: 14px;
    box-sizing: border-box;
}

.dspchslog-table-wrap {
    width: 96% !important;
    max-width: none !important;
    margin: 0 auto !important;
    overflow-x: auto;
}

.dspchslog-table {
    width: 100% !important;
    table-layout: auto;
}

/* eQSL vollständig sichtbar */
.dspchslog-table td:last-child,
.dspchslog-table th:last-child {
    white-space: nowrap;
}

.dspchslog-table td:last-child a {
    padding: 3px 7px;
}

/* ==========================================================
   ABSCHLIESSENDE LAYOUT-KORREKTUR
   Die äußere alte Tabelle wird als 2-spaltiges Grid behandelt.
   Dadurch erhält das Jägerlog zuverlässig den gesamten Restplatz.
   ========================================================== */

@media (min-width: 901px) {
  .dspchslog-page .dspchslog-layout {
    display: block !important;
    width: 100% !important;
    table-layout: auto !important;
  }

  .dspchslog-page .dspchslog-layout > tbody {
    display: block !important;
    width: 100% !important;
  }

  .dspchslog-page .dspchslog-layout > tbody > tr {
    display: grid !important;
    grid-template-columns: 210px minmax(0, 1fr) !important;
    column-gap: 18px;
    width: 100% !important;
    align-items: start;
  }

  .dspchslog-page .dspchslog-layout > tbody > tr > td:first-child,
  .dspchslog-page .dspchslog-layout > tbody > tr > td:nth-child(2) {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
  }

  .dspchslog-page .dspchslog-layout > tbody > tr > td:first-child {
    grid-column: 1;
  }

  .dspchslog-page .dspchslog-layout > tbody > tr > td:nth-child(2) {
    grid-column: 2;
  }

  .dspchslog-period-nav,
  .dspchslog-period-nav-top,
  .dspchslog-table-wrap,
  .dspchslog-footer-panel {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .dspchslog-table-wrap {
    overflow-x: auto !important;
  }

  .dspchslog-table {
    width: 100% !important;
    table-layout: auto !important;
  }
}

@media (max-width: 900px) {
  .dspchslog-page .dspchslog-layout,
  .dspchslog-page .dspchslog-layout > tbody,
  .dspchslog-page .dspchslog-layout > tbody > tr,
  .dspchslog-page .dspchslog-layout > tbody > tr > td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .dspchslog-table-wrap {
    width: 100% !important;
    overflow-x: auto !important;
  }

  .dspchslog-table {
    width: 100% !important;
    table-layout: auto !important;
  }
}




/* ==========================================================
   FINAL – Kopf, Tabelle und Fußbereich korrekt einpassen
   ========================================================== */

@media (min-width: 901px) {

  /* Nur die eigentliche Menü-/Inhaltszeile als Grid behandeln.
     Die Kopfzeile bleibt über die gesamte Breite. */
  .dspchslog-page .dspchslog-layout > tbody > tr:first-child {
    display: table-row !important;
    width: 100% !important;
  }

  .dspchslog-page .dspchslog-layout > tbody > tr:first-child > td {
    display: table-cell !important;
    width: 100% !important;
    max-width: none !important;
    grid-column: auto !important;
  }

  /* Nur die letzte Zeile enthält links das Menü und rechts das Log */
  .dspchslog-page .dspchslog-layout > tbody > tr:last-child {
    display: grid !important;
    grid-template-columns: 210px minmax(0, 1fr) !important;
    column-gap: 18px;
    width: 100% !important;
    align-items: start;
  }

  .dspchslog-page .dspchslog-layout > tbody > tr:last-child > td:first-child {
    grid-column: 1;
    width: auto !important;
    min-width: 0 !important;
  }

  .dspchslog-page .dspchslog-layout > tbody > tr:last-child > td:nth-child(2) {
    grid-column: 2;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}


/* Rufzeichen-/Jägerlog-Kachel wieder über die gesamte Breite */
.dspchslog-header {
  box-sizing: border-box !important;
}


/* Tabelle wirklich in den verfügbaren Platz einpassen */
.dspchslog-table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.dspchslog-table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
  box-sizing: border-box !important;
}


/* Inhalt darf sinnvoll umbrechen */
.dspchslog-table th,
.dspchslog-table td {
  box-sizing: border-box !important;
  overflow-wrap: anywhere;
}


.dspchslog-table td:last-child a {
  padding: 3px 6px;
}


/* Untere Kachel nicht breiter als die Tabellenzelle */
.dspchslog-footer-panel {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}





/* ==========================================================
   Endgültige Spaltenbreiten
   ========================================================== */

.dspchslog-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed !important;
}

.dspchslog-table .col-date      { width: 90px; }
.dspchslog-table .col-mycall    { width: 90px; }
.dspchslog-table .col-utc       { width: 48px; }
.dspchslog-table .col-qrg       { width: 55px; }
.dspchslog-table .col-mode      { width: 50px; }

.dspchslog-table .col-rst       { width: 42px; }
.dspchslog-table .col-check     { width: 24px; }
.dspchslog-table .col-flag      { width: 28px; }
.dspchslog-table .col-station   { width: 105px; }

.dspchslog-table .col-icon      { width: 28px; }
.dspchslog-table .col-reference { width: 120px; }
.dspchslog-table .col-points    { width: 36px; }

/* Kommentar bekommt den verbleibenden Platz */
.dspchslog-table .col-comment   { width: auto; }

.dspchslog-table .col-eqsl      { width: 54px; }



.dspchslog-table td:nth-child(1),
.dspchslog-table td:nth-child(2),
.dspchslog-table td:nth-child(3),
.dspchslog-table td:nth-child(4),
.dspchslog-table td:nth-child(5),
.dspchslog-table td:nth-child(6),
.dspchslog-table td:nth-child(7),
.dspchslog-table td:nth-child(8),
.dspchslog-table td:nth-child(9),
.dspchslog-table td:nth-child(11),
.dspchslog-table td:nth-child(13),
.dspchslog-table td:nth-child(15) {
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

.dspchslog-table td:nth-child(10),
.dspchslog-table td:nth-child(12) {
    overflow-wrap: normal !important;
    word-break: normal !important;
}



/* ==========================================================
   FINALE JÄGERLOG-TABELLE
   ========================================================== */

.dspchslog-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow-x: auto !important;
    border-radius: 14px;
    box-sizing: border-box;
}

.dspchslog-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    table-layout: fixed !important;
    box-sizing: border-box;
}

/* Kopf kompakt */
.dspchslog-table tbody,
.dspchslog-table tr {
    height: auto !important;
}

.dspchslog-table th.tt2 {
    height: auto !important;
    min-height: 0 !important;
    padding: 6px 3px !important;
    line-height: 16px !important;
    vertical-align: middle !important;
}

/* Datenzellen kompakt */
.dspchslog-table td.tt2,
.dspchslog-table td.tt1 {
    padding-left: 3px !important;
    padding-right: 3px !important;
}

/* Spaltenbreiten */
.dspchslog-table .col-date      { width: 70px; }
.dspchslog-table .col-mycall    { width: 60px; }
.dspchslog-table .col-utc       { width: 46px; }
.dspchslog-table .col-qrg       { width: 52px; }
.dspchslog-table .col-mode      { width: 30px; }

.dspchslog-table .col-rst       { width: 30px; }
.dspchslog-table .col-check     { width: 24px; }
.dspchslog-table .col-flag      { width: 30px; }
.dspchslog-table .col-station   { width: 80px; }

.dspchslog-table .col-icon      { width: 20px; }
.dspchslog-table .col-reference { width: 90px; }
.dspchslog-table .col-points    { width: 40px; }

/* Kommentar nimmt den verbleibenden Platz */
.dspchslog-table .col-comment   { width: auto; }

/* Feste Breite für Kopf und Button */
.dspchslog-table .col-eqsl      { width: 50px; }

/* Kurze Spalten niemals umbrechen */
.dspchslog-table td:nth-child(1),
.dspchslog-table td:nth-child(2),
.dspchslog-table td:nth-child(3),
.dspchslog-table td:nth-child(4),
.dspchslog-table td:nth-child(5),
.dspchslog-table td:nth-child(6),
.dspchslog-table td:nth-child(7),
.dspchslog-table td:nth-child(8),
.dspchslog-table td:nth-child(9),
.dspchslog-table td:nth-child(11),
.dspchslog-table td:nth-child(13),
.dspchslog-table td:nth-child(15) {
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

/* Station und Referenz dürfen sinnvoll umbrechen */
.dspchslog-table td:nth-child(10),
.dspchslog-table td:nth-child(12) {
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

/* eQSL-Spalte */
.dspchslog-table th:last-child,
.dspchslog-table td:last-child {
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    white-space: nowrap !important;
    text-align: center !important;
}

.dspchslog-table td:last-child a {
    display: inline-block;
    padding: 3px 6px !important;
}


.dspchslog-table .points-cell {
    position: relative;
    padding: 3px !important;
    text-align: right !important;
    white-space: nowrap !important;
    overflow: hidden;
}

.dspchslog-table .points-mult {
    float: left;
    color: red;
    font-size: 10px;
}

.dspchslog-table .points-value {
    display: inline-block;
    min-width: 18px;
    text-align: right;
}


body.modal-open {
    overflow: hidden;
}

.qso-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 24px;
    background: rgba(12, 28, 38, 0.68);
    backdrop-filter: blur(2px);
}

.qso-modal.visible {
    display: flex;
}

.qso-modal-dialog {
    position: relative;

    width: min(920px, 96vw);
    height: min(720px, 92vh);

    overflow: hidden;
    border: 1px solid #a9c5d3;
    border-radius: 16px;
    background: white;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.qso-modal-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: white;
}

.qso-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;

    width: 36px;
    height: 36px;

    border: 0;
    border-radius: 50%;
    background: #b42332;
    color: white;

    font-size: 25px;
    line-height: 34px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .22);
}

.qso-modal-close:hover {
    background: #8e1623;
}


/* ==========================================================
   Kompaktere Auswahlbuttons + Kopf über Tabellenbreite
   ========================================================== */

/* Kopfkachel auf Breite der Logtabelle */
.dspchslog-header {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Jahresauswahl kompakter */
.dspchslog-year-select-label {
    gap: 4px;
    padding-left: 8px;
    font-size: 11px;
}

.dspchslog-year-select {
    min-width: 78px;
    padding: 4px 24px 4px 8px;
    font-size: 12px;
}


/* Alle übrigen Auswahlbuttons kompakter */
.dspchslog-period-action,
.dspchslog-month-button {
    min-height: 24px !important;
    padding: 3px 8px !important;
    font-size: 12px !important;
    line-height: 1.1;
}


/* Abstände zwischen den Buttons ebenfalls kleiner */
.dspchslog-period-toolbar,
.dspchslog-months {
    gap: 4px !important;
}



/* FINAL: Kopfkachel */
.dspchslog-header {
    width: 96% !important;
    margin: 0 auto 12px auto !important;
    box-sizing: border-box !important;
}

.dspchslog-header td:first-child {
    width: 210px !important;
}

.dspchslog-header td:last-child {
    width: auto !important;
}



@media (max-width: 900px) {
    .dspchslog-header {
        width: 100% !important;
    }

    .dspchslog-header td {
        display: block;
        width: auto !important;
        text-align: center;
        padding: 10px 16px;
    }
}




/* Kopfzeile darf nicht die 210-px-Breite der Menüspalte erben */
.dspchslog-page
.dspchslog-layout > tbody > tr:first-child > td:first-child {
    width: 100% !important;
    min-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Kopfkachel über nahezu die gesamte Breite */
.dspchslog-header {
    width: 96% !important;
    margin: 0 auto 12px !important;
}


/* FINAL: Kopfkachel unabhängig von der linken 210px-Menüspalte */
.dspchslog-page
.dspchslog-layout > tbody > tr > td.dspchslog-header-cell {
    display: table-cell !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
}

/* Kachel über die gesamte Breite der äußeren Tabelle */
.dspchslog-header-cell .dspchslog-header {
    width: 96% !important;
    max-width: none !important;
    margin: 0 auto 12px !important;
}
