/* AdminLayout, tabulky a editory administrace. Vlastnik: K2 (spolecna cast), baliky faze 2 jen ve svych oddilech. Pravidla pod .rd. */
/* Zdroj: prototyp-zahlavi/servis.css (.adm …). Proti prototypu je nad administraci nove zahlavi webu (SiteHeader),
   proto sidebar neni pres celou vysku okna, ale lepi se pod zahlavi. Prvky editoru (panel, toolbar, seg …) jsou ve spolecne casti,
   styly jednoho editoru v admin-faq.css, admin-content.css, admin-ops.css a admin-newsletter.css. */

/* ---------- kostra ---------- */
.rd.rd-admin {
  --adm-side-width: 248px;
  /* vyska zahlavi nahore a ve stavu scrolled (header.css, desktop) */
  --adm-header-top: 89px;
  --adm-header-height: 65px;
  --adm-bg: #f5f6f9;
  display: block;
  flex: 1 0 auto;
  background: var(--adm-bg);
}

/* tmavy sloupec sidebaru jde az dolu i u kratke stranky, obsah sidebaru se lepi pod zahlavi */
.rd .adm {
  display: grid;
  grid-template-columns: var(--adm-side-width) minmax(0, 1fr);
  min-height: calc(100vh - var(--adm-header-top));
  background: linear-gradient(to right, var(--navy-dark) var(--adm-side-width), var(--adm-bg) var(--adm-side-width));
}

.rd .adm-side {
  min-width: 0;
  background: var(--navy-dark);
  color: #aeb4c2;
}

.rd .adm-side-inner {
  position: sticky;
  top: var(--adm-header-height);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--adm-header-top));
  max-height: calc(100vh - var(--adm-header-height));
  overflow-y: auto;
}

/* zahlavi se schova pri scrollu dolu (header.js, do 1100 px) */
.rd.site-header.tucked ~ .rd-admin .adm-side-inner {
  top: 0;
  max-height: 100vh;
}

.rd .adm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid #2f3950;
}

.rd .adm-brand .k {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: #fff;
}

.rd .adm-brand .k img {
  width: 26px;
  height: auto;
}

.rd .adm-brand b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #fff;
}

.rd .adm-brand small {
  display: block;
  font-size: 11.5px;
  line-height: 16px;
  color: #8d94a5;
}

.rd .adm-nav {
  display: grid;
  gap: 2px;
  padding: 14px 12px;
}

.rd .adm-nav .grp {
  margin: 14px 10px 6px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #6f7790;
}

.rd .adm-nav .grp:first-child {
  margin-top: 0;
}

.rd .adm-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 20px;
  color: #c3c8d4;
}

.rd .adm-nav a svg {
  flex: none;
  opacity: .8;
}

.rd .adm-nav a:hover {
  background: rgba(255, 255, 255, .05);
  color: #fff;
}

.rd .adm-nav a.on {
  background: rgba(255, 255, 255, .09);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--form-studio-color);
}

.rd .adm-nav a .ext {
  display: inline-flex;
  margin-left: auto;
  opacity: .6;
}

.rd .adm-nav a:focus-visible,
.rd .adm-side .foot a:focus-visible,
.rd .adm-close:focus-visible {
  outline-color: #fff;
}

/* skeleton do overeni pristupu: stejna vyska radku jako polozky, at se sidebar nepresklada */
.rd .adm-nav .skel {
  height: 38px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .04);
}

.rd .adm-side .foot {
  margin-top: auto;
  padding: 16px 22px 20px;
  border-top: 1px solid #2f3950;
  font-size: 12px;
  line-height: 18px;
}

.rd .adm-side .foot small {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: #8d94a5;
}

.rd .adm-side .foot small.sim {
  color: var(--form-studio-color);
}

.rd .adm-side .foot a {
  font-weight: 500;
  color: #fff;
}

.rd .adm-scrim,
.rd .adm-close {
  display: none;
}

.rd .adm-close {
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
}

.rd .adm-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rd .adm-top {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 62px;
  padding: 0 30px;
  border-bottom: 1px solid var(--border-color);
  background: #fff;
}

.rd .adm-top .crumbs {
  min-width: 0;
  margin: 0;
}

.rd .adm-top .spacer {
  flex: 1;
}

.rd .adm-top .who {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--body-text);
}

.rd .adm-top .who .ava {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.rd .adm-menu-btn {
  display: none;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}

.rd .adm-content {
  width: 100%;
  max-width: 1320px;
  padding: 28px 30px 60px;
}

/* ---------- AdminGate ---------- */
.rd .adm-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 240px;
  font-size: 14px;
  color: var(--muted-text-color);
}

.rd .adm-gate .loader {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 3px solid var(--border-color);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: rd-spin .9s linear infinite;
}

/* ---------- hlavicka stranky administrace ---------- */
.rd .adm-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 20px;
  margin-bottom: 22px;
}

.rd .adm-head h1 {
  margin: 0;
  font-size: 26px;
  line-height: 34px;
  font-weight: 600;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.rd .adm-head p {
  max-width: 680px;
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 21px;
  color: var(--body-text);
}

.rd .adm-head .btn-row {
  gap: 8px;
}

.rd .adm-note {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 19px;
  color: var(--muted-text-color);
}

.rd .adm-note code {
  font-size: 12px;
  color: var(--body-text);
}

/* ---------- prehled /admin ---------- */
.rd .adm-hub-group + .adm-hub-group {
  margin-top: 26px;
}

.rd .adm-hub-group > h2 {
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--muted-text-color);
}

.rd .hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.rd .hub-card {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}

.rd .hub-card:hover,
.rd .hub-card:focus-within {
  border-color: var(--navy);
  box-shadow: 0 8px 20px rgba(31, 40, 61, .08);
}

.rd .hub-card .ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--light-gray-color);
  color: var(--navy);
}

/* cela karta je odkaz hlavni polozky; odkaz SK varianty lezi nad nim */
.rd .hub-card .hub-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--navy);
}

.rd .hub-card .hub-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.rd .hub-card .hub-link .ext {
  display: inline-flex;
  color: var(--muted-text-color);
}

.rd .hub-card small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 17px;
  color: var(--body-text);
}

.rd .hub-card .hub-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 6px;
  font-size: 11px;
  line-height: 16px;
  color: var(--muted-text-color);
}

.rd .hub-card .hub-meta code {
  font-family: var(--font-mono);
  font-size: 11px;
}

.rd .hub-card .hub-sk {
  position: relative;
  z-index: 1;
  padding: 0 6px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-weight: 600;
  color: var(--navy);
}

.rd .hub-card .hub-sk:hover {
  border-color: var(--navy);
}

/* ---------- spolecne prvky editoru ---------- */
/* servis.css .panel, .toolbar, .seg, .icon-btn, .tick, .empty, .kpis, .chips, .pager, .adm-form, .edit-layout, .switch, .progress.
   Korenova trida ma predponu adm-, vnorene prvky nazvy z prototypu (panel-head, spacer, search-in, edit-side, track …). */

/* panel */
.rd .adm-panel {
  min-width: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: #fff;
}

.rd .adm-panel + .adm-panel,
.rd .adm-panel + .table-wrap {
  margin-top: 20px;
}

.rd .adm-panel .panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.rd .adm-panel .panel-head h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  min-width: 0;
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 22px;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.rd .adm-panel .panel-head h2 small {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted-text-color);
}

.rd .adm-panel .panel-body {
  padding: 20px;
}

.rd .adm-panel .panel-body.stack {
  gap: 14px;
}

.rd .adm-panel .panel-body.stack.tight {
  gap: 10px;
}

.rd .adm-panel .stack > p {
  margin: 0;
}

.rd .adm-panel .panel-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 12px 20px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--muted-text-color);
}

.rd .adm-panel .adm-gate {
  min-height: 160px;
}

/* tabulka v panelu bez vlastniho ramecku; nad ni je hlavicka panelu nebo strankovani */
.rd .adm-panel .tbl-wrap {
  border: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.rd .adm-panel .tbl-wrap .tbl thead th:first-child,
.rd .adm-panel .tbl-wrap .tbl thead th:last-child {
  border-radius: 0;
}

/* nastrojova lista nad tabulkou (filtry) */
.rd .adm-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.rd .adm-toolbar.flush {
  margin-bottom: 0;
}

.rd .adm-toolbar .spacer {
  flex: 1;
}

.rd .adm-toolbar .input,
.rd .adm-toolbar .select {
  width: auto;
  max-width: 100%;
  height: 38px;
  font-size: 13.5px;
}

.rd .adm-toolbar .search-in {
  position: relative;
  max-width: 100%;
}

.rd .adm-toolbar .search-in .input {
  width: 260px;
  padding-left: 36px;
}

.rd .adm-toolbar .search-in::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 12px;
  width: 15px;
  height: 15px;
  background: url(/img/ico-search.svg) center / contain no-repeat;
  opacity: .55;
  pointer-events: none;
}

.rd .adm-toolbar .check {
  align-items: center;
  font-size: 13px;
}

/* prepinac (seg) */
.rd .adm-seg {
  display: inline-flex;
  gap: 2px;
  max-width: 100%;
  padding: 3px;
  border-radius: 9px;
  background: #e9ebf0;
}

.rd .adm-seg button,
.rd .adm-seg a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 7px 14px;
  border: 0;
  border-radius: 7px;
  background: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: var(--body-text);
  white-space: nowrap;
  cursor: pointer;
}

.rd .adm-seg button:hover,
.rd .adm-seg a:hover {
  color: var(--navy);
}

.rd .adm-seg .on {
  background: #fff;
  font-weight: 600;
  color: var(--navy);
  box-shadow: 0 1px 4px rgba(31, 40, 61, .12);
}

.rd .adm-seg img {
  width: 12px;
  height: 12px;
}

.rd .adm-seg .count {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted-text-color);
}

/* ikonove tlacitko v radku tabulky */
.rd .adm-icon-btn {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--body-text);
  cursor: pointer;
}

.rd .adm-icon-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.rd .adm-icon-btn.danger:hover {
  border-color: var(--err);
  background: var(--err-soft);
  color: var(--err);
}

.rd .adm-icon-btn:disabled {
  border-color: var(--border-color);
  background: #fff;
  color: var(--body-text);
  opacity: .4;
  cursor: default;
}

.rd .adm-content .tbl .actions .btn.sm {
  height: 32px;
  padding: 0 12px;
}

/* ano / ne v tabulce */
.rd .adm-tick {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.rd .adm-tick.yes {
  background: var(--ok-soft);
  color: var(--ok);
}

.rd .adm-tick.no {
  background: var(--light-gray-color);
  color: #b9bdc8;
}

/* prazdny stav; .empty v DataTable ma zaklad v components.css */
.rd .adm-empty {
  padding: 44px 20px;
  text-align: center;
  font-size: 13.5px;
  color: var(--body-text);
}

.rd .adm-empty .ico,
.rd .adm-content .table-wrap .empty .ico {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--light-gray-color);
  color: var(--muted-text-color);
}

.rd .adm-empty b,
.rd .adm-content .table-wrap .empty b {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  color: var(--navy);
}

.rd .adm-empty p,
.rd .adm-content .table-wrap .empty p {
  margin: 0;
}

.rd .adm-empty .btn {
  margin-top: 14px;
}

/* KPI karty */
.rd .adm-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.rd .adm-kpi {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: #fff;
}

.rd .adm-kpi small {
  display: block;
  font-size: 12.5px;
  line-height: 18px;
  color: var(--body-text);
}

.rd .adm-kpi b {
  display: block;
  margin: 4px 0 2px;
  font-size: 26px;
  line-height: 32px;
  font-weight: 600;
  color: var(--navy);
}

.rd .adm-kpi .sub {
  display: block;
  font-size: 12px;
  line-height: 17px;
  color: var(--muted-text-color);
}

/* chipy (vicenasobny vyber, uvnitr label se skrytym checkboxem) */
.rd .adm-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.rd .adm-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid var(--border-color);
  border-radius: 22px;
  background: #fff;
  font-size: 13px;
  line-height: 20px;
  color: var(--primary-text-color);
  cursor: pointer;
  user-select: none;
}

.rd .adm-chip:hover {
  border-color: var(--navy);
}

.rd .adm-chip.on {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.rd .adm-chip:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.rd .adm-chip.is-disabled {
  cursor: default;
  opacity: .7;
}

.rd .adm-chip.is-disabled:hover {
  border-color: var(--border-color);
}

.rd .adm-chip.on.is-disabled:hover {
  border-color: var(--navy);
}

/* strankovani nad (.top) a pod (.bottom) tabulkou v panelu */
.rd .adm-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 18px;
  color: var(--body-text);
}

.rd .adm-pager.top {
  border-bottom: 1px solid var(--border-color);
}

.rd .adm-pager.bottom {
  border-top: 1px solid var(--border-color);
}

.rd .adm-pager b {
  color: var(--navy);
}

.rd .adm-pager .pages {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.rd .adm-pager .pages button {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  color: var(--navy);
  cursor: pointer;
}

.rd .adm-pager .pages button:hover:not(:disabled) {
  border-color: var(--navy);
}

.rd .adm-pager .pages button:disabled {
  color: #b4b8c2;
  cursor: default;
}

/* formular: popisky vlevo, pole vpravo; sirku sloupce popisku meni --adm-form-label */
.rd .adm-form {
  display: grid;
  grid-template-columns: var(--adm-form-label, 170px) minmax(0, 1fr);
  align-items: center;
  gap: 16px 22px;
}

.rd .adm-form > label,
.rd .adm-form > .label {
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  color: var(--navy);
}

.rd .adm-form > label small,
.rd .adm-form > .label small {
  display: block;
  font-weight: 400;
  color: var(--muted-text-color);
}

.rd .adm-form .full {
  grid-column: 2;
}

.rd .adm-form .input,
.rd .adm-form .select {
  height: 42px;
}

/* editor a bocni panel */
.rd .adm-edit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 22px;
}

.rd .adm-edit-layout .edit-main {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.rd .adm-edit-layout .edit-side {
  position: sticky;
  top: calc(var(--adm-header-height, 65px) + 16px);
  display: grid;
  gap: 16px;
  min-width: 0;
}

.rd .adm-edit-layout .edit-main .adm-panel + .adm-panel,
.rd .adm-edit-layout .edit-side .adm-panel + .adm-panel {
  margin-top: 0;
}

.rd .adm-edit-layout .edit-side .adm-seg {
  display: flex;
  width: 100%;
}

.rd .adm-edit-layout .edit-side .adm-seg button {
  flex: 1 1 auto;
  justify-content: center;
  gap: 5px;
  padding: 7px 4px;
  font-size: 12px;
}

.rd .adm-edit-layout .edit-side .input {
  height: 42px;
}

/* prepinac ano/ne (label se skrytym checkboxem a .track) */
.rd .adm-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  line-height: 20px;
  color: var(--primary-text-color);
  cursor: pointer;
  user-select: none;
}

.rd .adm-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.rd .adm-switch .track {
  position: relative;
  flex: none;
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: #cfd3dc;
  transition: background .15s;
}

.rd .adm-switch .track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .15s;
}

.rd .adm-switch input:checked + .track {
  background: var(--ok);
}

.rd .adm-switch input:checked + .track::after {
  transform: translateX(16px);
}

.rd .adm-switch input:disabled + .track {
  opacity: .5;
}

.rd .adm-switch input:focus-visible + .track {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* prubeh (nahravani, rozesilani) */
.rd .adm-progress {
  height: 8px;
  border-radius: 4px;
  background: #e9ebf0;
  overflow: hidden;
}

.rd .adm-progress > div {
  height: 100%;
  border-radius: 4px;
  background: var(--ok);
  transition: width .4s;
}

/* ---------- mobil a tablet ---------- */
@media (max-width: 1100px) {
  .rd .hub-grid,
  .rd .adm-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rd .adm-edit-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .rd .adm-edit-layout .edit-side {
    position: static;
  }
}

@media (max-width: 1000px) {
  .rd .adm {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    background: none;
  }

  .rd .adm-side {
    position: fixed;
    z-index: 60;
    top: 0;
    left: 0;
    width: 270px;
    max-width: 86vw;
    height: 100vh;
    height: 100dvh;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform .2s, visibility 0s .2s;
  }

  .rd .adm.menu-open .adm-side {
    transform: none;
    visibility: visible;
    box-shadow: 20px 0 40px rgba(0, 0, 0, .2);
    transition: transform .2s;
  }

  .rd .adm-side-inner,
  .rd.site-header.tucked ~ .rd-admin .adm-side-inner {
    position: static;
    height: 100%;
    min-height: 0;
    max-height: none;
  }

  .rd .adm.menu-open .adm-scrim {
    display: block;
    position: fixed;
    z-index: 59;
    inset: 0;
    background: rgba(31, 40, 61, .45);
  }

  .rd .adm-close,
  .rd .adm-menu-btn {
    display: grid;
  }
}

@media (max-width: 700px) {
  .rd .hub-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rd .adm-top {
    gap: 10px;
    padding: 0 14px;
  }

  .rd .adm-top .who > span:first-child {
    display: none;
  }

  .rd .adm-top .crumbs {
    flex-wrap: nowrap;
    overflow: hidden;
    font-size: 12px;
    white-space: nowrap;
  }

  .rd .adm-top .crumbs > * {
    flex: none;
  }

  .rd .adm-top .crumbs > [aria-current] {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .rd .adm-content {
    padding: 20px 14px 70px;
  }

  .rd .adm-head h1 {
    font-size: 22px;
    line-height: 30px;
  }

  .rd .adm-head .btn-row {
    width: 100%;
  }

  .rd .adm-head .btn-row > .btn {
    flex: 1 1 auto;
  }

  /* stejne odsazeni jako radky tabulky ve tvaru karet a strankovani */
  .rd .adm-panel .panel-head,
  .rd .adm-panel .panel-body,
  .rd .adm-panel .panel-foot {
    padding-right: 14px;
    padding-left: 14px;
  }

  .rd .adm-toolbar .spacer {
    display: none;
  }

  .rd .adm-toolbar .search-in,
  .rd .adm-toolbar .search-in .input,
  .rd .adm-toolbar .input,
  .rd .adm-toolbar .select {
    width: 100%;
  }

  .rd .adm-seg {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .rd .adm-content .tbl.stack-sm .actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  /* dotykove cile */
  .rd .adm-icon-btn,
  .rd .adm-pager .pages button,
  .rd .adm-content .tbl .actions .btn.sm {
    min-width: 40px;
    height: 40px;
  }

  .rd .adm-icon-btn {
    width: 40px;
  }

  .rd .adm-kpis {
    gap: 10px;
  }

  .rd .adm-kpi {
    padding: 14px;
  }

  .rd .adm-kpi b {
    font-size: 21px;
    line-height: 28px;
  }

  .rd .adm-pager {
    padding: 10px 14px;
  }

  .rd .adm-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .rd .adm-form > label,
  .rd .adm-form > .label {
    margin-top: 10px;
  }

  .rd .adm-form > :first-child {
    margin-top: 0;
  }

  .rd .adm-form .full {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rd .adm-side,
  .rd .adm.menu-open .adm-side {
    transition: none;
  }
}

/* Jen pro jeden editor: admin-faq.css (FAQ), admin-content.css (Historie aktualizaci, Ke stazeni), admin-ops.css (logy, General settings),
   admin-newsletter.css (newsletter), admin-recording.css (zaznam navstev). Co pouzivaji dva editory, patri do spolecne casti vyse. */
