/* Návody k zařízením (/navody-pro-zarizeni/) – rozložení podle původního rozcestníku, barvy obchodu. */
.tm-navody-body { color: #515365; }
.tm-navody-body > p { max-width: 900px; font-size: 16px; line-height: 1.6; }
.tm-navody-body > h2 { margin: 36px 0 16px; font-size: 24px; color: #222; }

/* Tlačítka nahoře (Všechny návody) */
.tm-navody .fv-tips-category-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.tm-navody .fv-tips-category-buttons:not(:has(.fv-tips-button)) { display: contents; }
.tm-navody .fv-tips-button { display: inline-flex; align-items: center; gap: 14px; padding: 14px 20px; border-radius: 6px; background: var(--theme-primary-soft); color: var(--theme-primary); font-size: 14px; font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
.tm-navody .fv-tips-button:hover, .tm-navody .fv-tips-button:focus-visible { background: color-mix(in srgb, var(--theme-primary), white 84%); color: var(--theme-primary-hover); }
.tm-navody .fv-tips-button img { max-width: 30px; max-height: 30px; }

/* Tabulky značek, sérií a modelů */
.tm-navody .tables-container { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.tm-navody .tables-container .tables-container { display: contents; }
.tm-navody .category-table { flex: 1 1 300px; min-width: 260px; max-width: 520px; background: #fff; border: 1px solid #e0e6ed; border-radius: 8px; overflow: hidden; }
.tm-navody .category-table h2 { margin: 0; padding: 12px 20px; background: var(--theme-primary-soft); color: #333; font-size: 18px; font-weight: 700; text-align: center; }
.tm-navody .category-table table { width: 100%; border-collapse: collapse; }
.tm-navody .category-table tr { border-bottom: 1px solid #e0e6ed; }
.tm-navody .category-table tr:last-child { border-bottom: 0; }
.tm-navody .category-table tr:hover { background: #f9f9f9; }
.tm-navody .category-table td { padding: 10px 16px; vertical-align: middle; color: #515365; }
.tm-navody .category-table td:first-child:has(img) { width: 1%; white-space: nowrap; }
.tm-navody .category-table td img { display: block; max-width: 120px; max-height: 44px; width: auto; height: auto; object-fit: contain; }
.tm-navody .category-table td a { color: #515365; font-size: 14px; font-weight: 700; text-decoration: none; }
.tm-navody .category-table td a:hover { color: var(--theme-primary); text-decoration: underline; }
.tm-navody .category-table td:has(> a.button), .tm-navody .category-table td:nth-child(3) { text-align: right; white-space: nowrap; }

/* Tlačítko Stáhnout / Zobrazit manuál */
.tm-navody a.button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--theme-primary); border-radius: 6px; background: #fff; color: var(--theme-primary) !important; font-size: 13px; font-weight: 700; white-space: nowrap; text-decoration: none !important; }
.tm-navody a.button:hover { background: var(--theme-primary); color: #fff !important; }

/* Panel „Nenašli jste návod?“ */
.tm-navody .instruction-panel { width: 100%; margin-top: 24px; padding: 18px 20px 4px; border-radius: 9px; background: var(--theme-primary-soft); color: var(--theme-primary-hover); font-size: 16px; }
.tm-navody .instruction-panel a { color: var(--theme-primary); font-weight: 700; text-decoration: none; }
.tm-navody .instruction-panel a:hover { text-decoration: underline; }

/* Vyhledávání v modelech */
.tm-navody-search { margin-top: 8px; padding: 20px; background: #fff; border: 1px solid #e0e6ed; border-radius: 8px; }
.tm-navody-filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.tm-navody-field { position: relative; margin: 0; }
.tm-navody-field input, .tm-navody-field select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #cfd6df; border-radius: 6px; background: #fff; color: #222; font-size: 15px; }
.tm-navody-query input { padding-left: 38px; }
.tm-navody-query i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #8a94a6; pointer-events: none; }
.tm-navody-field input:focus, .tm-navody-field select:focus { outline: 2px solid var(--theme-primary); outline-offset: 0; border-color: var(--theme-primary); }
.tm-navody-count { margin: 14px 0 8px; font-size: 14px; color: #6b7280; }
.tm-navody-table-wrap { overflow-x: auto; }
.tm-navody-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tm-navody-table th { padding: 10px 12px; background: #f6f8fa; border-bottom: 1px solid #e0e6ed; color: #515365; font-weight: 700; text-align: left; }
.tm-navody-table td { padding: 10px 12px; border-bottom: 1px solid #eef1f4; color: #515365; vertical-align: middle; }
.tm-navody-table td:last-child { text-align: right; }
.tm-navody-table tr:hover td { background: #f9fafb; }
.tm-navody-model { font-weight: 700; color: #222 !important; }
.tm-navody-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 14px; }
.tm-navody-pages button { min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid #cfd6df; border-radius: 6px; background: #fff; color: #333; font-weight: 600; }
.tm-navody-pages button:hover:not(:disabled) { border-color: var(--theme-primary); color: var(--theme-primary); }
.tm-navody-pages button[aria-current] { background: var(--theme-primary); border-color: var(--theme-primary); color: #fff; }
.tm-navody-pages button:disabled:not([aria-current]) { opacity: .4; }

@media (max-width: 767.98px) {
  .tm-navody .category-table { max-width: none; }
  .tm-navody .fv-tips-button { width: 100%; padding: 10px 14px; }
  .tm-navody-search { padding: 14px; }
  .tm-navody-filters { grid-template-columns: 1fr; }
  .tm-navody-table th, .tm-navody-table td { padding: 8px; }
  .tm-navody-table a.button { padding: 6px 8px; font-size: 0; gap: 0; }
  .tm-navody-table a.button i { font-size: 15px; }
}
