    :root{
      --bg:#0b0f14;
      --card:#111827;
      --muted:#94a3b8;
      --text:#e5e7eb;
      --accent:#3b82f6;
      --border:#1f2937;
    }
    *{box-sizing:border-box}
    html,body{height:100%}
    body{
      margin:0; font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial;
      background:linear-gradient(180deg,#0b0f14 0%, #0f172a 100%);
      color:var(--text);
    }
    .wrap{max-width:1100px; margin:32px auto; padding:0 16px}
    header{display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:24px}
    h1{font-weight:800; letter-spacing:.2px; margin:0; font-size:clamp(26px,3vw,36px)}
    .subtitle{color:var(--muted); font-size:14px}

    .grid{display:grid; grid-template-columns:repeat(12,1fr); gap:16px}
    .card{grid-column:span 12; background:var(--card); border:1px solid var(--border); border-radius:18px; padding:18px}
    @media (min-width:800px){
      .card.span-6{grid-column:span 6}
      .card.span-4{grid-column:span 4}
    }

    .card h2{margin:0 0 12px; font-size:18px}
    .table{width:100%; border-collapse:collapse;}
    .table thead th{font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); text-align:left; padding:10px 10px; border-bottom:1px solid var(--border)}
    .table tbody td{padding:10px 10px; border-bottom:1px dashed var(--border)}
    .table tfoot td{padding:12px 10px; font-weight:700}
    .right{text-align:right}

    .total{display:flex; justify-content:space-between; align-items:center; margin-top:10px; padding:12px 14px; border:1px solid var(--border); border-radius:12px; background:rgba(59,130,246,.07)}
    .total .label{color:var(--muted); font-size:14px}
    .total .value{font-size:20px; font-weight:800}

   

/* Globální nastavení odkazů */
a, a:link, a:visited {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #60a5fa; /* světlejší modrá */
  text-decoration: underline;
}

/* Vylepšené odkazy v .links (button styl) */
.links {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.links a,
.links a:link,
.links a:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(59,130,246,0.12), rgba(59,130,246,0.05));
  padding: 12px 16px;
  border-radius: 14px;
  transition: all 0.25s ease;
}

.links a:hover {
  background: linear-gradient(145deg, rgba(59,130,246,0.22), rgba(59,130,246,0.08));
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(59,130,246,0.25);
  transform: translateY(-2px);
}

.links a:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(59,130,246,0.2);
}




    footer{margin-top:28px; color:var(--muted); font-size:12px}

    /* Tisk */
    @media print{
      body{background:white; color:#111}
      .card{background:white; border-color:#ddd}
      .links a{color:#111; background:transparent; border-color:#ddd}
      .total{background:#f6f8ff; border-color:#cdd7ff}
    }

    /* --- Fix overflow / zaoblení karet / responsivní obsah --- */

/* Žádný horizontální scroll z drobných výpočtů gridu */
html, body { overflow-x: hidden; }

/* Obsah se ořízne do zaoblených rohů karty */
.card { overflow: hidden; position: relative; }

/* Obrázky (QR apod.) a tabulky nikdy nepřesáhnou šířku karty */
img { max-width: 100%; height: auto; display: block; }
.table { table-layout: fixed; width: 100%; }
.table td, .table th { word-break: break-word; }
/* Ensure price header aligns right and doesn't wrap */
.table thead th.right { text-align: right; white-space: nowrap; }
/* Keep the price column compact across head/body */
.table th:last-child,
.table td:last-child { white-space: nowrap; }
.table tbody td:last-child { text-align: right; }
.table thead th:last-child,
.table tbody td:last-child,
.table tfoot td:last-child { font-variant-numeric: tabular-nums; }

/* Grid „nepropouští“ drobné přesahy při animacích apod. */
.grid { contain: paint; }

/* Accordion styles */
details.accordion {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(59,130,246,0.06);
  padding: 0;
  margin-top: 16px;
}
details.accordion > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font-weight: 700;
  background: linear-gradient(145deg, rgba(17,24,39,0.75), rgba(17,24,39,0.55));
  border-bottom: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
details.accordion > summary::-webkit-details-marker { display: none; }
details.accordion > summary h2 { margin: 0; font-size: clamp(18px, 2.2vw, 22px); }
details.accordion > summary .summary-title { display: inline-flex; align-items: center; gap: 8px; }
details.accordion > summary .summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--muted);
}
details.accordion > summary:hover .summary-icon {
  color: var(--accent);
}
details.accordion > summary:hover {
  background: linear-gradient(145deg, rgba(59,130,246,0.14), rgba(59,130,246,0.08));
  border-color: rgba(59,130,246,0.35);
  box-shadow: 0 4px 14px rgba(59,130,246,0.20);
}
details.accordion > summary:focus-visible {
  outline: 2px solid rgba(59,130,246,0.7);
  outline-offset: 2px;
}
details.accordion[open] > summary { border-bottom: 1px solid var(--border); }
details.accordion section { padding: 16px; }

/* Obvious chevron toggle */
details.accordion > summary::after {
  content: "\25BC"; /* ▼ */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: rgba(59,130,246,0.18);
  color: var(--accent);
  font-size: 14px;
  box-shadow: inset 0 0 0 1px rgba(59,130,246,0.45);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
details.accordion > summary:hover::after {
  background: rgba(59,130,246,0.28);
  box-shadow: inset 0 0 0 1px rgba(59,130,246,0.6);
}
details.accordion[open] > summary::after {
  transform: rotate(180deg);
}


