/*
 * Moderní administrační vrstva ePubliS pro Kácov.
 * Soubor se načítá až po původním motivu a sjednocuje starší moduly bez
 * zásahu do jejich funkce. Záměrně používá pevné, neprůhledné plochy,
 * výrazné popisky a velké ovládací prvky.
 */

:root {
  --ep-page: #f4f6f8;
  --ep-surface: rgba(255, 255, 255, .82);
  --ep-surface-soft: rgba(248, 250, 251, .76);
  --ep-surface-muted: rgba(237, 241, 244, .80);
  --ep-text: #1c2833;
  --ep-muted: #46535e;
  --ep-border: #d7dee4;
  --ep-border-strong: #b9c4cd;
  --ep-primary: #086047;
  --ep-primary-hover: #08533f;
  --ep-primary-soft: #e7f4ef;
  --ep-navy: #17324d;
  --ep-navy-hover: #10283e;
  --ep-hero: rgba(16, 40, 62, .90);
  --ep-danger: #b42318;
  --ep-danger-hover: #8f1d14;
  --ep-warning: #9a5a08;
  --ep-focus: #f2a900;
  --ep-radius-sm: 8px;
  --ep-radius: 12px;
  --ep-radius-lg: 18px;
  --ep-shadow-sm: 0 2px 8px rgba(23, 50, 77, .08);
  --ep-shadow: 0 10px 30px rgba(23, 50, 77, .10);
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--ep-page);
  font-size: 17px;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--ep-page) url("icons/background.jpg") fixed center / cover no-repeat;
  color: var(--ep-text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

/*
 * Přihlašovací formulář se používá také v modálním dialogu pro prodloužení
 * relace. Rozvržení celé stránky proto smí aktivovat jen formulář, který je
 * přímo v hlavním kontejneru samostatné přihlašovací stránky.
 */
body:has(> #top > #loginForm) {
  display: flex;
  min-height: 100vh;
  align-items: center;
  align-items: safe center;
  justify-content: center;
  padding: 24px 0;
  background-image:
    linear-gradient(rgba(8, 23, 39, .36), rgba(8, 23, 39, .36)),
    url("icons/background.jpg");
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
}

body:has(> #top > #loginForm) #top { width: 100%; }

body.epublis-theme-blue {
  --ep-page: #dbeaf5;
  --ep-surface: rgba(244, 249, 253, .82);
  --ep-surface-soft: rgba(237, 246, 252, .76);
  --ep-surface-muted: rgba(220, 234, 244, .80);
  --ep-text: #162a3e;
  --ep-muted: #44586b;
  --ep-border: #b9cddd;
  --ep-border-strong: #8fa9bc;
  --ep-primary: #0d5685;
  --ep-primary-hover: #0e527f;
  --ep-primary-soft: #e3f1f9;
  --ep-navy: #123d63;
  --ep-navy-hover: #0d2f4d;
  --ep-hero: rgba(18, 61, 99, .90);
  background: var(--ep-page) url("icons/bg-blue.png") fixed center / cover no-repeat;
}

body.epublis-theme-colors {
  --ep-page: #f3e8ef;
  --ep-surface: rgba(255, 250, 252, .80);
  --ep-surface-soft: rgba(251, 243, 248, .76);
  --ep-surface-muted: rgba(240, 225, 235, .80);
  --ep-text: #2d2030;
  --ep-muted: #705c72;
  --ep-border: #d9bfd1;
  --ep-border-strong: #bd95b1;
  --ep-primary: #8b316c;
  --ep-primary-hover: #6b2452;
  --ep-primary-soft: #f6e4ef;
  --ep-navy: #4b315d;
  --ep-navy-hover: #382346;
  --ep-hero: rgba(75, 49, 93, .90);
  background: var(--ep-page) url("icons/bg-colors.jpg") fixed center / cover no-repeat;
}

body.epublis-theme-black {
  --ep-page: #20252b;
  --ep-surface: rgba(244, 247, 249, .78);
  --ep-surface-soft: rgba(237, 241, 244, .74);
  --ep-surface-muted: rgba(222, 227, 232, .78);
  --ep-text: #18212a;
  --ep-muted: #46515c;
  --ep-border: #b9c1c8;
  --ep-border-strong: #929da6;
  --ep-primary: #374151;
  --ep-primary-hover: #1f2937;
  --ep-primary-soft: #e8ebee;
  --ep-navy: #111827;
  --ep-navy-hover: #080d16;
  --ep-hero: rgba(17, 24, 39, .92);
  background: var(--ep-page) url("icons/bg-black.jpg") fixed center / cover no-repeat;
}

body.epublis-theme-blue:has(> #top > #loginForm) {
  background-image: linear-gradient(rgba(11, 42, 68, .22), rgba(11, 42, 68, .22)), url("icons/bg-blue.png");
}
body.epublis-theme-colors:has(> #top > #loginForm) {
  background-image: linear-gradient(rgba(47, 23, 50, .22), rgba(47, 23, 50, .22)), url("icons/bg-colors.jpg");
}
body.epublis-theme-black:has(> #top > #loginForm) {
  background-image: linear-gradient(rgba(0, 0, 0, .42), rgba(0, 0, 0, .42)), url("icons/bg-black.jpg");
}

a,
a:link,
a:visited {
  color: var(--ep-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

a:hover { color: var(--ep-primary-hover); text-decoration: none; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--ep-focus) !important;
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  color: var(--ep-text);
  font-family: inherit;
  line-height: 1.25;
}

h3 { color:white; }

hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--ep-border);
}

tbody tr:nth-child(odd)  { background: #ffffff; }
tbody tr:nth-child(even) { background: #e3e9ed; }

tbody td {
    border-bottom: 1px solid #c5cdd3;
    padding-top: 14px;
    padding-bottom: 14px;
}

#admin-content {
  width: min(1680px, 100%);
  margin: 0 auto;
  padding: 0 32px 56px;
}

.info {
  width: min(1800px, calc(100% - 32px));
  min-height: 0;
  margin: 84px 0px 28px 0px;
  padding: 20px 28px;
  border: 1px solid #bfd1dc;
  border-left: 7px solid var(--ep-primary);
  border-radius: var(--ep-radius);
  color: #fff;
  box-shadow: var(--ep-shadow);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  text-shadow: none;
}

.info[style*="red"] {
  border-left-color: var(--ep-danger);
  background: #fff2f1 !important;
  color: #721c16;
}

.info[style*="#013a01"] {
  border-left-color: var(--ep-primary);
  background: rgba(1, 58, 1, .88) !important;
  color: #fff !important;
}

.info br:first-child,
.info br:last-child { display: none; }

/* Nadpis modulu musí kopírovat šířku obsahu pod ním. */
.admin-heading-wrap {
  width: 100%;
  margin: 0;
}

#admin-content > .info,
#admin-content .admin-heading-wrap > .info {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.warning,
.ok,
.notice {
  width: 100%;
  margin: 14px auto;
  padding: 15px 18px 15px 50px;
  border: 1px solid transparent;
  border-radius: var(--ep-radius-sm);
  background-image: none;
  color: var(--ep-text);
  font-size: .96rem;
  line-height: 1.5;
  box-shadow: none;
}

.warning {
  border-color: #efb9b4;
  background: #fff2f1 url("icons/warning.png") no-repeat 15px 12px;
  color: #6f211a;
}

.ok {
  border-color: #9fcdbb;
  background: #ebf7f2 url("icons/right.png") no-repeat 16px 17px;
  color: #15513c;
}

.notice {
  border-color: #b9d0df;
  background: #eef6fb;
  color: #254c68;
}

.warning a,
.warning a:visited,
.notice a,
.notice a:visited { color: inherit; }

/* Horní lišta */
.infologin {
  position: fixed;
  inset: 0 0 auto;
  z-index: 99994;
  width: 100%;
  min-height: 64px;
  margin: 0;
  padding: 11px 20px;
  border: 0;
  border-radius: 0;
  background: var(--ep-navy);
  color: #fff;
  box-shadow: 0 3px 12px rgba(14, 37, 58, .22);
  font-size: .93rem;
  line-height: 42px;
  text-align: right;
}

.infologin a,
.infologin a:link,
.infologin a:visited {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 8px;
  border-radius: 7px;
  color: #fff;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  vertical-align: middle;
}

.infologin a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.infologin_epublis { float: left; color: #dbe7ef; }
.infologin_user { color: #dbe7ef; }
.infologin .logout { display: inline-flex; float: none; align-items: center; line-height: 1; vertical-align: middle; }
.logout .far { color: #ffd0cb; }

/* Tlačítka a formulářové prvky */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.akcebutton,
.submityes,
.submitno {
  min-height: 46px;
  height: auto;
  padding: 10px 18px !important;
  border: 2px solid transparent;
  border-radius: var(--ep-radius-sm);
  background: var(--ep-primary);
  color: #fff;
  box-shadow: none;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.akcebutton:hover,
.submityes:hover {
  border-color: var(--ep-primary-hover);
  background: var(--ep-primary-hover);
  color: #fff;
}

button:active,
input[type="submit"]:active { transform: translateY(1px); }

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: .68;
}

.submitno,
.deleteSubmit,
.submitnoSPAN a,
.deleteyes a {
  border-color: var(--ep-danger) !important;
  background: var(--ep-danger) !important;
  color: #fff !important;
}

.submitno:hover,
.deleteSubmit:hover,
.submitnoSPAN a:hover,
.deleteyes a:hover {
  border-color: var(--ep-danger-hover) !important;
  background: var(--ep-danger-hover) !important;
}

.submityes,
.submitno,
.deleteSubmit { background-image: none !important; }

#submit-button.is-saving,
#saveFormInMenu.is-saving {
  cursor: wait;
  opacity: .72;
  pointer-events: none;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
textarea,
select {
  min-height: 46px;
  max-width: 100%;
  margin: 4px 8px 4px 0;
  padding: 9px 12px;
  border: 1px solid var(--ep-border-strong);
  border-radius: var(--ep-radius-sm);
  background: rgba(255, 255, 255, .80);
  color: var(--ep-text);
  box-shadow: inset 0 1px 2px rgba(23, 50, 77, .04);
  font: inherit;
}

textarea { min-height: 140px; resize: vertical; }

input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):focus,
textarea:focus,
select:focus {
  border-color: var(--ep-primary);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 0 0 3px rgba(11, 107, 82, .12);
}

input[readonly],
textarea[readonly] { background: var(--ep-surface-muted); color: var(--ep-muted); }

input[type="checkbox"],
input[type="radio"] {
  width: 22px;
  height: 22px;
  margin: 8px 14px 8px 4px;
  accent-color: var(--ep-primary);
  transform: none;
}

/* Nadpisová tlačítka */
.iconmenu {
  position: fixed;
  top: 196px;
  right: 20px;
  z-index: 100004;
  display: inline-flex;
  width: 52px;
  min-width: 52px;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 !important;
  border: 0;
  border-radius: var(--ep-radius-sm);
  background: var(--ep-primary);
  color: #fff !important;
  box-shadow: var(--ep-shadow-sm);
  pointer-events: auto;
}

.iconmenu:hover,
.iconmenu:focus,
.iconmenu:active { border: 0 !important; }

.iconmenu::after {
  position: absolute;
  top: 50%;
  right: calc(100% + 10px);
  z-index: 1;
  padding: 7px 11px;
  border-radius: 7px;
  background: rgba(23, 50, 77, .94);
  color: #fff;
  content: attr(data-label);
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity .12s ease;
  visibility: hidden;
  white-space: nowrap;
}

.iconmenu:hover::after,
.iconmenu:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

.iconmenu i { padding: 0; font-size: 1rem; }
.iconmenu-save { top: 256px; width: 52px; min-width: 52px; gap: 0; padding: 0 !important; background: var(--ep-navy); }
.iconmenu-save:hover { background: var(--ep-navy-hover); border-color: var(--ep-navy-hover); }

.epublis-dialog-open .iconmenu,
.epublis-menu-open .iconmenu {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.epublis-menu-open { overflow-x: hidden; }

/* Domovská stránka */
.dashboard-layout {
  display: block;
}

.dashboard-actions,
.right {
  position: static;
  width: 100%;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius-lg);
  background: var(--ep-surface);
  color: var(--ep-text);
  box-shadow: var(--ep-shadow-sm);
  animation: none;
}

.dashboard-actions {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-actions .dashboard-intro {
  width: fit-content;
  max-width: 760px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: var(--ep-radius);
  background: var(--ep-hero);
  color: #fff;
  box-shadow: var(--ep-shadow-sm);
}

.dashboard-actions .dashboard-intro h2,
.dashboard-actions .dashboard-intro p { color: #fff; }
.dashboard-actions .dashboard-eyebrow { color: #9fe0c8; }

.dashboard-status {
  margin-top: 24px;
  background: rgba(255, 255, 255, .84);
}

.dashboard-intro { margin: 0 0 22px; }
.dashboard-intro h2,
.dashboard-status h2 { margin: 3px 0 8px; font-size: 1.35rem; }
.dashboard-intro p,
.dashboard-status-intro { margin: 0; color: var(--ep-muted); }
.dashboard-eyebrow {
  color: var(--ep-primary);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dashboard-status > br:first-child { display: none; }
.dashboard-status .warning,
.dashboard-status .ok,
.dashboard-status .notice { width: 100%; }
.dashboard-status #didYouKnow { margin-top: 22px; }

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: stretch;
  padding: 0;
  animation: none;
}

.dashboard-actions > .menu {
  display: grid;
  grid-template-columns: repeat(5, minmax(250px, 1fr));
  gap: 18px;
}

.dashboard-actions > .menu > .menu-fix,
.dashboard-actions > .menu > .menu-box { width: 100%; min-width: 0; }
.dashboard-actions > .menu > .menu-fix { display: block; }
.dashboard-actions > .menu > .menu-fix > .menu-box { width: 100%; height: 100%; }
.dashboard-actions > .menu > .menu-separator,
.dashboard-actions > .menu > .menu-nonseparator { display: none; }

.menu-box,
.menu-box:hover {
  width: 270px;
  flex: 1 1 250px;
  min-height: 170px;
  margin: 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-top: 4px solid #58b894;
  border-radius: var(--ep-radius);
  background: rgba(16, 40, 62, .90);
  background-image: none;
  color: #fff;
  box-shadow: 0 8px 24px rgba(5, 20, 33, .22);
  opacity: 1;
  transform: none;
  animation: none;
}

.menu-box-2 { border-top-color: #b42318; }
.menu-box-3 { border-top-color: #b15c10; }
.menu-box-4 { border-top-color: #70428c; }

.menu-box h3 {
  width: auto;
  margin: -20px -20px 16px;
  padding: 16px 20px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--ep-radius) var(--ep-radius) 0 0;
  background: rgba(0, 0, 0, .13);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 750;
  text-transform: none;
}

.menu-box ul { margin: 0; padding: 0; list-style: none; }
.menu-box ul li { margin: 0; padding: 7px 0; color: #fff; font-size: .98rem; }
.menu-box .menu { display: block; }
.menu-fix { width: min(360px, 100%); }

.menu-box a,
.menu-box a:link,
.menu-box a:visited,
.menu a,
.menu a:link,
.menu a:visited {
  color: #b9ead8;
  font-size: .98rem;
  font-weight: 650;
  text-decoration: none;
}

.menu-box a:hover,
.menu a:hover { color: #fff; text-decoration: underline; }
.menu li:hover,
.menu-box:hover,
.menu-box a:hover { transform: none; }
.menu li:hover { padding-left: 0; padding-right: 0; font-weight: inherit; }

.content-index { columns: 4 200px; column-gap: 22px; }
.content-index-group { break-inside: avoid; margin-bottom: 16px; }
.content-index-group h4 {
  margin: 0 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  color: #58b894;
  font-size: .84rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.content-index-group ul { margin: 0; padding: 0; list-style: none; }
.content-index-group li { padding: 3px 0; font-size: .92rem; line-height: 1.3; }
.content-index-group li a,
.content-index-group li a:link,
.content-index-group li a:visited { color: #b9ead8; font-weight: 500; text-decoration: none; }
.content-index-group li a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 900px) { .content-index { columns: 2 200px; } }
@media (max-width: 560px) { .content-index { columns: 1; } }

/* Vysouvací nabídka */
#menu {
  position: absolute !important;
  top: 124px !important;
  right: auto;
  bottom: auto;
  left: .5% !important;
  z-index: 99993;
  width: 99%;
  max-height: none;
  padding: 0;
  overflow-x: clip;
  overflow-y: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
  transition: opacity .15s ease;
}

#menu #Switch_menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 1fr;
  gap: 16px;
  align-items: stretch;
  justify-content: start;
  padding:20px;
}

#menu #Switch_menu > .menu { display: contents; }
#menu .menu-fix { width: 100%; min-width: 0; height: 100%; }
#menu .menu-separator,
#menu .menu-nonseparator { display: none; }
#menu .menu-box {
  position: static !important;
  width: 100%;
  height: 100%;
  z-index: auto !important;
  min-width: 0;
  min-height: 0;
  flex: none;
  padding: 16px;
}
#menu .menu-box h3 {
  margin: -16px -16px 11px;
  padding: 12px 16px 10px;
}
#menu .menu-box ul li { padding-block: 4px; }
#menu .menu li,
#menu .menu li:hover { margin: 0; padding-right: 0; padding-left: 0; }
#menu .kategorie_sett { width: 100%; min-width: 0; overflow-wrap: anywhere; }
#menu .menu-box .menu { display: block; }
.menu_float { position: static; width: 100%; margin: 0; padding: 48px 0 0; }
.menu_exit { position: absolute; top: 0; right: 0; z-index: 2; transform: none; }
.menu_exit button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 7px 12px !important;
  border-color: rgba(255, 255, 255, .42);
  background: rgba(16, 40, 62, .92);
  color: #fff;
}
.menu_exit button:hover { border-color: #fff; background: rgba(180, 35, 24, .92); color: #fff; }
.menu_exit button i { padding: 0; color: inherit; font-size: .95rem !important; }

/* Tabulky */
table {
  max-width: 100%;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  background: var(--ep-surface);
  color: var(--ep-text);
  box-shadow: none;
}

th {
  top: 64px;
  padding: 12px;
  background: var(--ep-navy);
  color: #fff;
  line-height: 1.35;
}

th a,
th a:link,
th a:visited { color: #fff !important; }
td { padding: 10px 12px; border-bottom-color: var(--ep-border); }

.table-list {
  width: 100%;
  min-width: 0;
  overflow: clip;
  border-spacing: 0;
  border-collapse: separate;
  box-shadow: var(--ep-shadow-sm);
}

.table-list thead th {
  position: sticky;
  z-index: 5;
  border-bottom: 1px solid #284a68;
  vertical-align: middle;
}

.table-list th:first-child { border-top-left-radius: 10px; }
.table-list th:last-child { border-top-right-radius: 10px; }
.table-list th[aria-sort] { background: var(--ep-primary); }
.table-list th a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 3px 5px;
  border-radius: 6px;
}
.table-list th a:hover { background: rgba(255, 255, 255, .12); }
.table-header,
.table-list .table-header { background: var(--ep-navy) !important; color: #fff !important; }
.table-list tr { color: var(--ep-text); font-size: .98rem; }
.table-list td {
  border-bottom: 1px solid var(--ep-border);
  vertical-align: middle;
  transition: background-color .14s ease;
}
.table-list tbody > tr:nth-child(odd) > td { background-color: rgba(225, 235, 241, .68); }
.table-list tbody > tr:nth-child(even) > td { background-color: rgba(184, 204, 214, .78); }
.table-list tr:nth-child(2n) { background-color: #e3e9ed; }

.table-list tr:nth-child(2n + 1):not(:first-child) { background-color: #ffffff; }
.table-list tbody > tr:hover > td { background-color: rgba(190, 220, 207, .94); }
.table-list > :is(thead, tbody) > tr:not(.table-header):hover > td { background-color: #fff0b3; }
.table-list > :is(thead, tbody) > tr:not(.table-header):hover { outline: 2px solid #d49b00; outline-offset: -2px; }
.table-list tbody > tr.trSelected > td { background-color: rgba(133, 190, 151, .78) !important; }
.table-list tbody > tr.zvyrazneni > td { background-color: rgba(161, 186, 130, .86) !important; }
.table-list tbody tr:last-child td { border-bottom: 0; }
.table-list td a,
.table-list td a:visited { color: var(--ep-primary) !important; }
.table-list td[align="center"] a {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
}
.table-list td[align="center"] a:hover { background: #d9eee7; }
.table-list .tdSelect { white-space: nowrap; }
.table-list .tdSelect input[type="checkbox"] { margin-right: 4px; }
.trSelected { background: #cfe9df !important; }

.table-sort-reset {
  width: 100%;
  margin: -4px auto 10px;
  text-align: right;
  font-size: .92rem;
}

.setting_table tr:hover { background-color: white; outline: 0px; outline-offset: 0px; }
.setting_table td:hover { background-color: #fff0b3;  }  

/* Editační formuláře */
.form-table {
  width: min(1120px, 100%);
  padding: 12px 20px;
  border: 0;
  border-radius: 0;
  border-spacing: 0;
  background: rgba(248, 250, 252, .64);
  box-shadow: none;
}

.form-table > tbody > tr > td { padding: 11px 14px; border-bottom: 1px solid var(--ep-border); }
.form-table > tbody > tr:last-child > td { border-bottom: 0; }
.form-table > tbody > tr > td:first-child {
  width: 31%;
  min-width: 220px;
  color: #2a3b49;
  font-weight: 700;
}
.form-table label { cursor: pointer; }
.form-table textarea { width: 100% !important; min-width: 0 !important; }
.form-table .pokrocile_td td { background: rgba(240, 244, 247, .92); }
.form-table hr { border: 0; border-top: 1px solid var(--ep-border); }
.pokrocile_td { border-left: 4px solid #c78425; }
.toggle { color: var(--ep-primary); }

.setting_table,
.setting_table td { color: var(--ep-text); }
.settings-section-title {
  margin: 0 0 8px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: var(--ep-radius-sm);
  background: var(--ep-hero);
  color: #fff !important;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(8, 23, 39, .72);
}
.setting_table {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.setting_table td { border-color: var(--ep-border); background: rgba(255, 255, 255, .78); }
.setting_table a,
.setting_table a:link,
.setting_table a:visited { color: var(--ep-primary); }

.settings-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 28px 0 10px;
}
.settings-form-actions .submityes,
.settings-form-actions .settings-cancel {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0;
  padding: 10px 18px !important;
  border: 2px solid transparent;
  border-radius: var(--ep-radius-sm);
  color: #fff !important;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
.settings-form-actions .settings-cancel { background: var(--ep-danger); }
.settings-form-actions .settings-cancel:hover { border-color: var(--ep-danger-hover); background: var(--ep-danger-hover); color: #fff !important; }
.settings-form-actions i { padding: 0; color: inherit; font-size: 1rem !important; }

.tabulka {
  background: rgba(255, 255, 255, .78);
  background-image: none;
  color: var(--ep-text);
  font-family: inherit;
  font-size: .96rem;
  text-align: left;
  text-indent: 0;
  box-shadow: var(--ep-shadow-sm);
}
.tabulka a,
.tabulka a:link,
.tabulka a:visited { color: var(--ep-primary) !important; font-size: inherit; }

/* Přihlášení */
:is(body > #top > #loginForm, .ajax_reader #loginForm) {
  flex: none;
  width: min(560px, calc(100% - 32px));
  margin: auto;
  padding: 0;
  color: var(--ep-text);
}

body > #top > #loginForm {
  transform: translateY(-30%);
}

.ajax_reader #loginForm {
  margin: 0 auto;
  padding: 16px 0 24px;
  transform: none;
}

:is(body > #top > #loginForm, .ajax_reader #loginForm) > br { display: none; }
:is(body > #top > #loginForm, .ajax_reader #loginForm) .info {
  width: 100%;
  margin: 0 0 16px;
  padding: 24px 28px;
  border: 0;
  border-radius: var(--ep-radius-lg) var(--ep-radius-lg) 0 0;
  background: rgba(255, 255, 255, .84) !important;
  color: var(--ep-navy);
  box-shadow: var(--ep-shadow);
  font-size: clamp(1.18rem, 2.5vw, 1.45rem);
  font-weight: 780;
  line-height: 1.4;
  text-align: center;
}

:is(body > #top > #loginForm, .ajax_reader #loginForm) .info b { display: block; margin-top: 4px; color: var(--ep-muted); font-size: .92rem; font-weight: 600; }
:is(body > #top > #loginForm, .ajax_reader #loginForm) #login_form { width: 100%; }
body > #top > #loginForm #login_form { margin: -16px 0 0; }
.ajax_reader #loginForm #login_form { margin: 0; }
:is(body > #top > #loginForm, .ajax_reader #loginForm) .tabulka_login {
  position: static;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 12px 28px 24px;
  border: 0;
  border-radius: var(--ep-radius-lg);
  border-spacing: 0 10px;
  background: rgba(255, 255, 255, .84);
  color: var(--ep-text);
  box-shadow: var(--ep-shadow);
}

body > #top > #loginForm .tabulka_login {
  border-radius: 0 0 var(--ep-radius-lg) var(--ep-radius-lg);
}

:is(body > #top > #loginForm, .ajax_reader #loginForm) .tabulka_login td { padding: 4px 7px; border: 0; background: transparent; }
:is(body > #top > #loginForm, .ajax_reader #loginForm) .tabulka_login tr { height: auto !important; background: transparent; outline: none; }
:is(body > #top > #loginForm, .ajax_reader #loginForm) .tabulka_login br,
:is(body > #top > #loginForm, .ajax_reader #loginForm) .tabulka_login img { display: none; }
:is(body > #top > #loginForm, .ajax_reader #loginForm) .tabulka_login .login_label {
  width: 39%;
  min-width: 0;
  color: #344657;
  font-size: .94rem;
  font-weight: 700;
  text-align: left;
}
:is(body > #top > #loginForm, .ajax_reader #loginForm) .tabulka_login input[type="text"],
:is(body > #top > #loginForm, .ajax_reader #loginForm) .tabulka_login input[type="password"] {
  width: 100%;
  min-width: 0;
  height: 48px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid var(--ep-border-strong);
  border-radius: var(--ep-radius-sm);
  background: rgba(255, 255, 255, .84);
  color: var(--ep-text);
  box-shadow: none;
  font-size: 1rem;
  text-align: left !important;
}

:is(body > #top > #loginForm, .ajax_reader #loginForm) .tabulka_login #login_submit {
  width: 100%;
  height: 48px;
  margin: 8px 0 16px;
  border-color: var(--ep-primary);
  background: var(--ep-primary);
  color: #fff;
  font-size: 1rem;
}

body > #top > #loginForm .login-meta {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  margin: 16px 0 30px !important;
  padding: 16px 18px;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  background: rgba(255, 255, 255, .78);
  color: var(--ep-text);
  text-align: left !important;
}

body > #top > #loginForm .login-meta .epublis_logo { position: static; width: 52px; margin: 0; padding: 0; line-height: 0; }
body > #top > #loginForm .login-meta .epublis_logo img { display: block; width: auto; height: 52px; margin: 0 auto; }
body > #top > #loginForm .login-meta__content { min-width: 0; }
body > #top > #loginForm .login-home-link { display: inline-block; margin-bottom: 6px; font-size: .92rem; font-weight: 700; }
body > #top > #loginForm .login-version { display: flex; flex-wrap: wrap; gap: 3px 9px; align-items: baseline; }
body > #top > #loginForm .login-version a { font-size: .86rem; }
body > #top > #loginForm .login-version span { color: var(--ep-muted); font-size: .8rem; }
body > #top > #loginForm > .tabulka:not(.tabulka_login) { width: 100%; }

/* Akční lišty, filtry a dialogy */
.pruh,
.actionBar {
  width: min(1180px, 100%);
  min-width: 0;
  border: 1px solid #b7c7bf;
  border-radius: var(--ep-radius);
  background: #eef5f2 !important;
  color: var(--ep-text);
}

.pruh {
  display: flex;
  width: min(1600px, calc(100% - 32px));
  min-height: 58px;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 12px !important;
  overflow: visible;
  background: rgba(238, 245, 242, .88) !important;
}

.pruh > span {
  position: static !important;
  top: auto !important;
  display: inline-flex;
  float: none !important;
  width: auto;
  height: auto !important;
  min-height: 38px;
  align-items: center;
  margin: 0 !important;
  padding: 7px 10px !important;
  border: 1px solid rgba(183, 199, 191, .82) !important;
  border-radius: 7px;
  background: rgba(248, 250, 252, .68) !important;
  color: var(--ep-text) !important;
  line-height: 1.25;
  white-space: normal;
}

.pruh > .zvyrazneni_napis {
  border-color: var(--ep-primary) !important;
  background: var(--ep-primary) !important;
  color: #fff !important;
}

.pruh a,
.pruh a:link,
.pruh a:visited,
.actionBar a,
.actionBar a:link,
.actionBar a:visited { color: var(--ep-primary); }
.pruh a,
.pruh a:link,
.pruh a:visited { line-height: 1.25; }
.actionBar div { border-right-color: #c7d5ce; }
#actionBar.fixed-bottom { background: #eef5f2; box-shadow: 0 -4px 18px rgba(23, 50, 77, .14); }

.list-filter {
  display: flex;
  width: 100%;
  max-width: 1180px;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 10px 0 4px;
  padding: 14px;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  background: rgba(255, 255, 255, .78);
  color: var(--ep-text);
  box-shadow: var(--ep-shadow-sm);
}
.list-filter b,
.list-filter label { color: var(--ep-text); }
.list-filter input,
.list-filter select { margin: 0; }

.ajax_reader {
  max-width: calc(100vw - 32px);
  max-height: 90vh;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius-lg);
  background: rgba(255, 255, 255, .82);
  color: var(--ep-text);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .30);
}
.ajax_reader a,
.ajax_reader a:link,
.ajax_reader a:visited { color: var(--ep-primary); }
.ajax_reader .window_header { background: var(--ep-navy); color: #fff; }
.ajax_reader .window_header a,
.ajax_reader .window_header a:link,
.ajax_reader .window_header a:visited { color: #fff; }
.ajax_reader .window_header_buttons a,
.ajax_reader .window_header_buttons a:link,
.ajax_reader .window_header_buttons a:visited { color: var(--ep-navy); }

.ajax_reader .settings-help-content {
  box-sizing: border-box;
  padding: 18px 20px;
  border: 1px solid rgba(199, 213, 206, .72);
  border-radius: var(--ep-radius);
  background: rgba(248, 250, 252, .78);
  color: var(--ep-text);
  line-height: 1.65;
  text-align: left;
}
.ajax_reader .settings-help-content h2,
.ajax_reader .settings-help-content h3,
.ajax_reader .settings-help-content b,
.ajax_reader .settings-help-content strong { color: var(--ep-text); }
.ajax_reader .settings-help-content table {
  background: rgba(244, 248, 250, .72);
  color: var(--ep-text);
}
.ajax_reader .settings-help-content th,
.ajax_reader .settings-help-content td {
  background: rgba(248, 250, 252, .62);
  color: var(--ep-text);
}

.popupCalendar {
  position: fixed;
  z-index: 100002;
  box-sizing: border-box;
  min-width: 0;
  max-width: calc(100vw - 20px);
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  background: rgba(248, 250, 252, .68);
  backdrop-filter: blur(10px);
  color: var(--ep-text);
  box-shadow: 0 18px 50px rgba(15, 36, 54, .28);
}
.popupCalendar__header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 7px;
  align-items: center;
  margin-bottom: 9px;
  color: var(--ep-text);
  cursor: default;
}
.popupCalendar__header strong { overflow: hidden; color: var(--ep-text); text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.popupCalendar button { margin: 0; }
.popupCalendar__nav { width: 42px; min-width: 42px; min-height: 38px; padding: 4px !important; background: var(--ep-navy); color: #fff; font-size: 1.35rem; }
.popupCalendar__table { width: 100%; table-layout: fixed; border: 0; border-collapse: separate; border-spacing: 2px; border-radius: 0; background: transparent; }
.popupCalendar__table th { position: static; width: 14.285%; padding: 5px 1px; background: rgba(237, 241, 244, .70); color: var(--ep-text); font-size: .8rem; text-align: center; }
.popupCalendar__table td { width: 14.285%; height: 38px; padding: 1px; border: 0; background: transparent; }
.popupCalendar__table td button { width: 100%; min-width: 0; min-height: 36px; padding: 3px 1px !important; border: 1px solid var(--ep-border); background: rgba(255, 255, 255, .70); color: var(--ep-text); font-weight: 700; }
.popupCalendar__table td button:hover { background: var(--ep-primary-soft); color: var(--ep-primary-hover); }
.popupCalendar__table td.is-selected button { background: var(--ep-primary); color: #fff; }
.popupCalendar__table td.is-today button { outline: 3px solid var(--ep-focus); outline-offset: -3px; }
.popupCalendar__close { width: 100%; min-height: 40px; margin-top: 8px !important; background: var(--ep-navy); color: #fff; }

.strankovani {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 14px auto;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--ep-radius);
  background: var(--ep-hero);
  color: #fff;
  text-shadow: 0 1px 3px rgba(8, 23, 39, .76);
}
.strankovani a,
.strankovaniActive {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  border: 1px solid var(--ep-border-strong);
  border-radius: var(--ep-radius-sm);
  background: rgba(255, 255, 255, .78);
  color: var(--ep-navy) !important;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-shadow: none;
}
.strankovani a:hover { border-color: var(--ep-primary); background: var(--ep-primary-soft); }
.strankovaniActive { border-color: var(--ep-navy); background: var(--ep-navy); color: #fff !important; }

.help {
  z-index: 2;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: var(--ep-radius-sm);
  background: var(--ep-hero);
  line-height: 1.25;
}
.help a,
.help a:link,
.help a:visited { color: #fff !important; }

/* V nastavení je odkaz nápovědy záměrně níž, aby nekolidoval s horní lištou. */
body:has(form[name="settings"]) .help { top: 190px !important; }

.add {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .30);
  border-radius: var(--ep-radius-sm);
  background: var(--ep-hero);
  color: #fff;
}
.add a,
.add a:link,
.add a:visited,
.add i { color: #fff !important; }
.add a:hover { color: #fff !important; text-decoration: none; }

/* Karty fotografií */
#photos {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  align-items: start;
  cursor: default;
}

#photos > br { display: none; }

.img-box {
  position: relative;
  display: flex;
  float: none;
  width: 100% !important;
  min-width: 0;
  height: auto !important;
  flex-direction: column;
  margin: 0;
  padding: 10px;
  overflow: hidden;
  border: 2px solid rgba(219, 231, 239, .46);
  border-radius: var(--ep-radius);
  background: rgba(23, 50, 77, .58);
  box-shadow: 0 8px 24px rgba(8, 23, 39, .20);
  cursor: grab;
}

.img-box:active { cursor: grabbing; }
.img-box.photo-dragging {
  opacity: .55;
  transform: scale(.985);
}
.img-box.photo-drag-before {
  box-shadow: inset 7px 0 0 var(--ep-focus), 0 8px 24px rgba(8, 23, 39, .20);
}
.img-box.photo-drag-after {
  box-shadow: inset -7px 0 0 var(--ep-focus), 0 8px 24px rgba(8, 23, 39, .20);
}

.img-box-count {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: auto;
  height: auto !important;
  margin: 0 !important;
  color: #fff;
  text-align: center;
  text-decoration: none;
}

.img-box-count span {
  position: static;
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, .60);
  border-radius: 999px;
  background: rgba(23, 50, 77, .94);
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(8, 23, 39, .32);
  font-weight: 800;
  line-height: 1;
  text-shadow: none;
}

.img-box [id^="photoDiv_"] {
  display: flex;
  width: 100%;
  aspect-ratio: 4 / 3;
  align-items: center;
  justify-content: center;
  padding: 10px !important;
  overflow: hidden;
  border-radius: var(--ep-radius-sm);
  background: rgba(8, 23, 39, .26);
}

.img-box [id^="photoDiv_"] > a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.img-box [id^="photo_"] {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.box-action {
  display: grid;
  gap: 4px;
  margin-top: 7px;
  padding: 4px !important;
  border: 1px solid rgba(219, 231, 239, .28);
  border-radius: var(--ep-radius-sm);
  background: rgba(8, 23, 39, .38);
}

.photo-action-group {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  padding: 3px 5px;
  border: 1px solid rgba(219, 231, 239, .18);
  border-radius: 7px;
  background: rgba(248, 250, 252, .06);
}

.photo-action-label {
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.photo-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(30px, 1fr));
  gap: 4px;
}

.photo-action-grid > a,
.photo-action-grid > span,
.img-box [id^="box_action_sort_"] a {
  display: inline-flex;
  width: 100%;
  min-width: 30px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 7px;
  background: rgba(248, 250, 252, .16);
  color: #fff !important;
  line-height: 1;
  text-decoration: none;
}

.photo-action-grid > a:hover,
.img-box [id^="box_action_sort_"] a:hover {
  background: rgba(248, 250, 252, .30);
  color: #fff !important;
}

.photo-action-grid > .photo-action-danger {
  background: rgba(180, 35, 24, .72);
  color: #fff !important;
}
.photo-action-grid > .photo-action-danger:hover { background: rgba(143, 29, 20, .90); }

.box-action i,
.box-action .icon-black,
.box-action .icon-dark,
.img-box [id^="box_action_sort_"] i {
  padding: 0;
  color: inherit !important;
  font-size: 1rem !important;
}

.img-box [id^="box_action_sort_"]:not(:empty) {
  margin-top: 10px;
  padding: 8px;
  border-radius: var(--ep-radius-sm);
  background: rgba(8, 23, 39, .38);
}

#notification {
  right: 20px;
  bottom: 20px;
  width: min(500px, calc(100vw - 40px));
  height: auto;
  min-height: 70px;
  padding: 18px 58px 18px 20px;
  border: 1px solid #91c6b2;
  border-left: 6px solid var(--ep-primary);
  border-radius: var(--ep-radius);
  background: #ebf7f2;
  color: #15513c;
  box-shadow: var(--ep-shadow);
  white-space: normal;
  text-align: left;
}
#notification.notification-error { border-color: #e5aaa5; border-left-color: var(--ep-danger); background: #fff2f1; color: #6f211a; }
#notificationText { color: inherit !important; white-space: pre-line; }
#notification button { position: absolute; top: 10px; right: 8px; min-width: 40px; min-height: 40px; padding: 6px !important; border: 0; background: transparent; color: inherit; }
#notification button:hover { background: rgba(0, 0, 0, .06); }

.close,
.close a,
.close a:link,
.close a:visited { color: var(--ep-primary); }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 900px) {
  html { font-size: 16px; }
  #admin-content { padding-inline: 16px; }
  .info { width: calc(100% - 32px); margin-top: 82px; }
  #menu #Switch_menu { grid-template-columns: repeat(2, minmax(250px, 1fr)); }
  #menu .menu-box { width: 100%; }
  .dashboard-actions > .menu { grid-template-columns: repeat(2, minmax(250px, 1fr)); }
  .infologin_epublis,
  .infologin_user { display: none; }
  .actionBar div { float: none; border-right: 0; border-bottom: 1px solid var(--ep-border); }
}

@media (max-width: 768px) {
  body:has(> #top > #loginForm) { background-attachment: scroll, scroll; }
  .iconmenu { top: 192px; right: 12px; min-width: 50px; width: 50px; padding: 0 !important; }
  .iconmenu span { display: none; }
  .iconmenu-save { top: 252px; }
  .dashboard-actions,
  .right { padding: 18px; }
  #menu #Switch_menu { grid-template-columns: 1fr; }
  #menu .menu-box { width: 100%; }
  .dashboard-actions { padding: 0; }
  .dashboard-actions > .menu { grid-template-columns: 1fr; }
  .dashboard-actions > .menu > .menu-box { width: 100%; }
  #menu { right: auto; bottom: auto; left: 2% !important; width: 96%; padding: 0; }

  body > #top > #loginForm { padding: 0; transform: translateY(-8%); }
  :is(body > #top > #loginForm, .ajax_reader #loginForm) .tabulka_login { display: block; padding: 10px 20px 22px; }
  :is(body > #top > #loginForm, .ajax_reader #loginForm) .tabulka_login tbody,
  :is(body > #top > #loginForm, .ajax_reader #loginForm) .tabulka_login tr,
  :is(body > #top > #loginForm, .ajax_reader #loginForm) .tabulka_login td { display: block; width: 100%; }
  :is(body > #top > #loginForm, .ajax_reader #loginForm) .tabulka_login td { padding: 5px 0; }
  :is(body > #top > #loginForm, .ajax_reader #loginForm) .tabulka_login .login_label { padding-top: 10px; }

  .table-list thead { display: none; }
  .table-list tbody { display: block; }
  .table-list tbody tr {
    display: block;
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius);
    background: rgba(255, 255, 255, .80);
    box-shadow: var(--ep-shadow-sm);
  }
  .table-list tbody td {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 12px;
    text-align: right !important;
  }
  .table-list tbody td::before {
    position: static;
    width: auto;
    max-width: 48%;
    color: var(--ep-muted);
    content: attr(data-label);
    font-weight: 700;
    text-align: left;
  }
  .table-list .tdSelect { justify-content: flex-end; }
  .table-list .tdSelect::before { margin-right: auto; content: "Vybrat"; }

  .form-table,
  .form-table > tbody,
  .form-table > tbody > tr,
  .form-table > tbody > tr > td { display: block; width: 100%; }
  .form-table { padding: 10px; }
  .form-table > tbody > tr { padding: 8px 0; border-bottom: 1px solid var(--ep-border); }
  .form-table > tbody > tr > td { min-width: 0 !important; padding: 5px 8px; border: 0; }
  .form-table > tbody > tr > td:first-child { padding-top: 10px; }
  #photos { min-width: 0; }
  #wysiwyg,
  #copyright { width: 100%; }
  .list-filter { padding: 10px; }
  .list-filter b { width: 100%; }
  .list-filter input:not([type="submit"]),
  .list-filter select { flex: 1 1 180px; }
}

@media (max-width: 520px) {
  #photos { grid-template-columns: 1fr; }
  .infologin { padding-inline: 8px; font-size: .84rem; }
  .infologin .fa,
  .infologin .fas,
  .infologin .far { padding-inline: 4px; }
  .info { width: calc(100% - 20px); padding: 16px; }
  .warning,
  .ok,
  .notice { padding-right: 14px; }
  :is(body > #top > #loginForm, .ajax_reader #loginForm) .info { padding: 20px 18px; }
  body > #top > #loginForm .login-meta { grid-template-columns: 1fr; text-align: center !important; }
}

@media (max-height: 700px) {
  body > #top > #loginForm { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  body { background: rgba(255, 255, 255, .96); color: #000; }
  .info { margin-top: 0; box-shadow: none; }
  .infologin,
  .iconmenu { display: none !important; }
}
