/* JABLOTRON brand kit look. Colors, radii, shadows and the type scale come from the kit; the overview of receipts
   adds tokens from the platform kit (jbtplatform.cz/docs/BRANDKIT.md), otherwise no custom values are added. Yellow
   is a signal: buttons, accents, the active step. Large areas stay white and grey. Text on yellow is always
   anthracite, never white. The logo is never drawn, only the official one is embedded.

   Dark mode: every color is a token defined in three blocks: the light `:root`, the system dark one
   (`prefers-color-scheme`, unless the user picked light by hand) and the manual `:root[data-theme="dark"]`. Add a new
   color token to all three, or one mode breaks. No hard-coded color appears outside these blocks (enforced by a PHP
   test). Dark values come from the platform kit. Yellow and anthracite do not change: anthracite is the text on
   yellow, `--jbt-ink` is the dark (in dark mode light) ink for outlines and highlights on surfaces, `--jbt-white` is
   plain white, the text on the dark sidebar and bar. The sidebar and bar have their own `--jbt-sidebar-*` tokens
   (platform kit values; the dark `--jbt-sidebar-muted` is lighter than in the kit for contrast on the user card). */
/* The brand font Jablo, two weights only (the kit has 400 and 600). font-display: swap shows the fallback first. */
@font-face {
  font-family: "Jablo";
  src: url("fonts/JabloRegular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jablo";
  src: url("fonts/JabloSemibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --jbt-yellow: #FFCF00;
  --jbt-yellow-hover: #E6BA00;
  --jbt-yellow-light: #FEEB9B;
  --jbt-blue: #0085CF;
  --jbt-white: #FFFFFF;
  --jbt-surface: #FFFFFF;
  --jbt-bg-alt: #F5F5F5;
  --jbt-surface-2: #F7F8F9;
  --jbt-border: #E0E0E0;
  /* Border of inputs and buttons. Same as --jbt-border in light mode, stronger in dark mode (at least 3:1) */
  --jbt-border-control: #E0E0E0;
  --jbt-text-muted: #6E6E6E;
  --jbt-text: #2B2B2B;
  --jbt-ink: #1C1C1C;
  --jbt-anthracite: #1C1C1C;
  --jbt-success: #2E9E4F;
  --jbt-warning: #FFA000;
  --jbt-error: #D32F2F;
  --jbt-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  --jbt-shadow-rest: 0 1px 4px rgba(16, 20, 28, .06);
  --jbt-focus-ring: rgba(255, 207, 0, .3);
  --jbt-pill-ok-bg: #E8F5EC;
  --jbt-pill-ok-fg: #1E7A3C;
  --jbt-pill-bad-bg: #FDECEC;
  --jbt-pill-bad-fg: #B3261E;
  --jbt-pill-wait-bg: #FEEB9B;
  --jbt-pill-wait-fg: #1C1C1C;
  /* Sidebar (a bar on a phone): a dark surface in both modes, darker still in dark mode */
  --jbt-sidebar-bg: #1C1C1C;
  --jbt-sidebar-text: #D9D9D9;
  --jbt-sidebar-muted: #8F8F8F;
  --jbt-sidebar-border: #2E2E2E;
  --jbt-sidebar-active-bg: rgba(255, 207, 0, .14);
  --jbt-sidebar-active-fg: #FFCF00;
  --jbt-sidebar-hover: rgba(255, 255, 255, .06);
  --jbt-sidebar-card: rgba(255, 255, 255, .05);
  --jbt-sidebar-scroll: rgba(255, 255, 255, .35);
  /* Scrim over the page behind the slide-out panel on a phone */
  --jbt-scrim: rgba(0, 0, 0, .5);
  /* Start page: the left sign-in panel is always dark, a gradient into dark yellow (deeper in dark mode) */
  --jbt-visual-from: #1C1C1C;
  --jbt-visual-mid: #101010;
  --jbt-visual-to: #191300;
  --jbt-visual-glow: rgba(255, 207, 0, .12);
  --jbt-visual-muted: #A8A8A8;
  --jbt-visual-foot: #8F8F8F;
  /* Mode-independent */
  --jbt-radius-sm: 6px;
  --jbt-radius-md: 14px;
  --jbt-radius-bubble: 12px;
  --jbt-radius-input: 10px;
  --jbt-radius-lg: 20px;
  --jbt-radius-btn: 9px;
  --jbt-container: 1120px;
  --jbt-font: "Jablo", "Inter", "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  /* Spacing grid in multiples of 8 px */
  --space: 8px;
  --gutter: 16px;
}

/* System dark mode, unless the user picked light by hand. The values are the same as in the block below. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --jbt-yellow: #FFCF00;
    --jbt-yellow-hover: #E6BA00;
    --jbt-yellow-light: #FEEB9B;
    --jbt-blue: #4FB3E8;
    --jbt-white: #FFFFFF;
    --jbt-surface: #232323;
    --jbt-bg-alt: #161616;
    --jbt-surface-2: #1D1D1D;
    --jbt-border: #383838;
    --jbt-border-control: #7A7A7A;
    --jbt-text-muted: #A8A8A8;
    --jbt-text: #F5F5F5;
    --jbt-ink: #F5F5F5;
    --jbt-anthracite: #1C1C1C;
    --jbt-success: #5BC57E;
    --jbt-warning: #FFA000;
    --jbt-error: #E57373;
    --jbt-shadow: 0 12px 30px rgba(0, 0, 0, .55);
    --jbt-shadow-rest: 0 1px 4px rgba(0, 0, 0, .45);
    --jbt-focus-ring: rgba(255, 207, 0, .25);
    --jbt-pill-ok-bg: rgba(91, 197, 126, .14);
    --jbt-pill-ok-fg: #5BC57E;
    --jbt-pill-bad-bg: rgba(229, 115, 115, .14);
    --jbt-pill-bad-fg: #EE8080;
    --jbt-pill-wait-bg: rgba(255, 207, 0, .16);
    --jbt-pill-wait-fg: #FFD633;
    --jbt-sidebar-bg: #101010;
    --jbt-sidebar-text: #D9D9D9;
    --jbt-sidebar-muted: #8F8F8F;
    --jbt-sidebar-border: #262626;
    --jbt-sidebar-active-bg: rgba(255, 207, 0, .14);
    --jbt-sidebar-active-fg: #FFCF00;
    --jbt-sidebar-hover: rgba(255, 255, 255, .06);
    --jbt-sidebar-card: rgba(255, 255, 255, .05);
    --jbt-sidebar-scroll: rgba(255, 255, 255, .35);
    --jbt-scrim: rgba(0, 0, 0, .5);
    /* Start page: the left sign-in panel is always dark, a gradient into dark yellow (deeper in dark mode) */
    --jbt-visual-from: #141414;
    --jbt-visual-mid: #0A0A0A;
    --jbt-visual-to: #120E00;
    --jbt-visual-glow: rgba(255, 207, 0, .12);
    --jbt-visual-muted: #A8A8A8;
    --jbt-visual-foot: #8F8F8F;
  }
}

/* Manually chosen dark mode, takes precedence over the device setting */
:root[data-theme="dark"] {
  color-scheme: dark;
  --jbt-yellow: #FFCF00;
  --jbt-yellow-hover: #E6BA00;
  --jbt-yellow-light: #FEEB9B;
  --jbt-blue: #4FB3E8;
  --jbt-white: #FFFFFF;
  --jbt-surface: #232323;
  --jbt-bg-alt: #161616;
  --jbt-surface-2: #1D1D1D;
  --jbt-border: #383838;
  --jbt-border-control: #7A7A7A;
  --jbt-text-muted: #A8A8A8;
  --jbt-text: #F5F5F5;
  --jbt-ink: #F5F5F5;
  --jbt-anthracite: #1C1C1C;
  --jbt-success: #5BC57E;
  --jbt-warning: #FFA000;
  --jbt-error: #E57373;
  --jbt-shadow: 0 12px 30px rgba(0, 0, 0, .55);
  --jbt-shadow-rest: 0 1px 4px rgba(0, 0, 0, .45);
  --jbt-focus-ring: rgba(255, 207, 0, .25);
  --jbt-pill-ok-bg: rgba(91, 197, 126, .14);
  --jbt-pill-ok-fg: #5BC57E;
  --jbt-pill-bad-bg: rgba(229, 115, 115, .14);
  --jbt-pill-bad-fg: #EE8080;
  --jbt-pill-wait-bg: rgba(255, 207, 0, .16);
  --jbt-pill-wait-fg: #FFD633;
  --jbt-sidebar-bg: #101010;
  --jbt-sidebar-text: #D9D9D9;
  --jbt-sidebar-muted: #8F8F8F;
  --jbt-sidebar-border: #262626;
  --jbt-sidebar-active-bg: rgba(255, 207, 0, .14);
  --jbt-sidebar-active-fg: #FFCF00;
  --jbt-sidebar-hover: rgba(255, 255, 255, .06);
  --jbt-sidebar-card: rgba(255, 255, 255, .05);
  --jbt-sidebar-scroll: rgba(255, 255, 255, .35);
  --jbt-scrim: rgba(0, 0, 0, .5);
  /* Start page: the left sign-in panel is always dark, a gradient into dark yellow (deeper in dark mode) */
  --jbt-visual-from: #141414;
  --jbt-visual-mid: #0A0A0A;
  --jbt-visual-to: #120E00;
  --jbt-visual-glow: rgba(255, 207, 0, .12);
  --jbt-visual-muted: #A8A8A8;
  --jbt-visual-foot: #8F8F8F;
}

* { box-sizing: border-box; }

html, body { margin: 0; }
/* The top edge of a phone (notch, status bar) and the overscroll area above the page use the bar color. */
html { background-color: var(--jbt-sidebar-bg); }

body {
  font-family: var(--jbt-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--jbt-text);
  background: var(--jbt-bg-alt);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

h1 { font-size: 1.45rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 16px; }
h2 { font-size: clamp(19px, 3.2vw, 22px); font-weight: 600; line-height: 1.25; margin: 0; }
p { margin: 0 0 16px; }
a { color: var(--jbt-blue); font-weight: 600; text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lead { font-size: 18px; }
/* Page heading of the kit: the title, one sentence under it and the main action of the page on the right. */
.page-sub { margin: 0 0 20px; color: var(--jbt-text-muted); font-size: 0.95rem; }
/* The sign-in scene and the start error screen keep their own larger heading (KH-434: the scene is unchanged). */
.shell--auth h1 { font-size: clamp(26px, 5.2vw, 36px); line-height: 1.15; }
h1 + .page-sub { margin-top: -12px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin: 0 0 20px; }
.page-head h1 { margin: 0 0 4px; }
.page-head .page-sub { margin: 0; }
.page-head__actions { flex: none; display: flex; gap: 8px; }
/* A narrow window puts the action under the title, unless the heading says it stays beside it (a small icon button). */
@media (max-width: 639px) {
  .page-head:not(.page-head--inline) { flex-direction: column; align-items: stretch; }
}
.muted { color: var(--jbt-text-muted); }
.small { font-size: 14px; }

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

.boot { padding: 24px var(--gutter); color: var(--jbt-text-muted); }

/* Kit accents: the label above a heading and the square yellow bar */
.eyebrow {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.accent-bar { width: 52px; height: 5px; margin: 0 0 16px; background: var(--jbt-yellow); }

/* Screen frame: on a computer (from 900 px) the sidebar on the left with the content next to it, on a phone a bar on
   top with the content below. A scene without a sidebar (sign-in, error, access code) has only the bar and centered
   content at every width. */
.shell { min-height: 100vh; min-height: 100dvh; display: flex; background: var(--jbt-bg-alt); }
/* The overview of receipts has a table with eight or nine columns, so its content is wider than the kit's 1120 px */
.shell--broad { --jbt-container: 1440px; }
.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* Sidebar per the platform kit. On a phone it is a slide-out panel from the left: off-screen, hidden from tab and
   screen reader, always dark, above the content and the scrim. From 900 px it is always visible: 264 px, sticky, as
   tall as the window. */
.sidebar {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  flex-direction: column;
  flex-shrink: 0;
  width: min(86vw, 320px);
  height: 100vh;
  height: 100dvh;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  transform: translateX(-100%);
  visibility: hidden;
  /* A horizontal drag to the left closes the panel (layout.js); vertical scrolling inside the panel stays with the
     browser */
  touch-action: pan-y;
  overscroll-behavior: contain;
  background: var(--jbt-sidebar-bg);
  color: var(--jbt-sidebar-text);
  border-right: 1px solid var(--jbt-sidebar-border);
}
.sidebar--open { transform: none; visibility: visible; }
/* While closing, the panel stays visible until the transition ends; with reduced motion it switches at once */
@media (prefers-reduced-motion: no-preference) {
  .sidebar { transition: transform .2s ease, visibility 0s linear .2s; }
  .sidebar--open { transition: transform .2s ease; }
}
/* While dragging with a finger the panel follows it without a transition */
.sidebar.sidebar--dragging { transition: none; }
/* The panel takes focus itself after a tap (for screen reader and keyboard), so an outline on it would show nothing */
.sidebar:focus { outline: none; }
.sidebar-backdrop { position: fixed; inset: 0; z-index: 30; background: var(--jbt-scrim); }
/* Close button in the phone panel, on the right in the row with the logo */
.sidebar-close {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -0.4rem -0.5rem -0.4rem auto;
  padding: 0;
  color: var(--jbt-sidebar-text);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.sidebar-close svg { width: 22px; height: 22px; }
.sidebar-close:hover { color: var(--jbt-yellow); background: var(--jbt-sidebar-hover); }
/* The page does not scroll behind an open panel (the class is toggled by layout.js) */
@media (max-width: 899px) {
  html.nav-open, html.nav-open body { overflow: hidden; }
}
@media (min-width: 900px) {
  .sidebar {
    position: sticky;
    z-index: auto;
    align-self: flex-start;
    width: 264px;
    padding-top: 0;
    transform: none;
    visibility: visible;
  }
  .sidebar-close, .sidebar-backdrop { display: none; }
  .shell:not(.shell--auth) .topbar { display: none; }
}

/* Start page (a scene without a sidebar): on a computer two panels like the JBT Platform sign-in, dark with a
   gradient into dark yellow on the left, a content surface on the right. On a phone there is no left panel and the
   scene stays a bar and a card. */
.auth-visual { display: none; }
@media (min-width: 900px) {
  .shell--auth { background: var(--jbt-surface); }
  .shell--auth .auth-visual {
    position: relative;
    flex: 1 1 52%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 2.5rem 3rem;
    background-image: linear-gradient(150deg, var(--jbt-visual-from) 0%, var(--jbt-visual-mid) 55%, var(--jbt-visual-to) 100%);
    color: var(--jbt-white);
  }
  .auth-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 80% 14%, var(--jbt-visual-glow), transparent 42%);
    pointer-events: none;
  }
  .auth-visual > * { position: relative; }
  .auth-visual__brand { display: flex; align-items: center; gap: 0.7rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
  .auth-visual__brand .brand-mark { width: 30px; height: 31px; }
  .auth-visual__mark { width: clamp(140px, 18vw, 230px); color: var(--jbt-white); }
  .auth-visual__mark svg { display: block; width: 100%; height: auto; }
  .auth-visual__title { margin: 1.6rem 0 0.4rem; max-width: 18ch; font-size: clamp(1.5rem, 2.6vw, 2.15rem); font-weight: 600; line-height: 1.2; }
  .auth-visual__text { margin: 0; max-width: 40ch; color: var(--jbt-visual-muted); }
  .auth-visual__foot { margin: 0; font-size: 0.8rem; color: var(--jbt-visual-foot); }
  .shell--auth .main-col { flex: 1 1 48%; background: var(--jbt-surface); }
  .shell--auth .topbar { background: transparent; border-bottom: 0; padding-top: 1.5rem; }
  .shell--auth .topbar__inner { max-width: none; justify-content: flex-end; }
  .shell--auth .topbar__brand { display: none; }
  .shell--auth .topbar .theme-toggle { color: var(--jbt-text); border-color: var(--jbt-border-control); }
  .shell--auth .topbar .theme-toggle:hover { color: var(--jbt-text); border-color: var(--jbt-text); background: var(--jbt-bg-alt); }
  .shell--auth .page-watermark { display: none; }
  .shell--auth .content { display: flex; align-items: center; justify-content: center; max-width: none; }
  .shell--auth .container--narrow { width: 100%; max-width: 400px; }
  .shell--auth .sign-in { padding: 0; background: transparent; border: 0; box-shadow: none; }
  .shell--auth .sign-in .accent-bar, .shell--auth .sign-in__about { display: none; }
  .shell--auth .sign-in h1 { margin-bottom: 0.3rem; font-size: 1.6rem; letter-spacing: -0.01em; }
  .shell--auth .sign-in__text { margin-bottom: 1.75rem; font-size: 0.95rem; }
  .shell--auth .sign-in__btn { min-height: 52px; font-size: 1.02rem; }
}

.brand { display: flex; align-items: center; gap: 0.8rem; padding: 1.15rem 1.25rem 1rem; }
.brand__home { display: flex; align-items: center; gap: 0.8rem; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.brand__home:focus-visible, .topbar__home:focus-visible { outline: 2px solid var(--jbt-yellow); outline-offset: 4px; border-radius: 4px; }
.topbar__home { display: flex; align-items: baseline; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
.brand-mark { flex: none; width: 34px; height: 36px; color: var(--jbt-white); }
.brand-mark svg { display: block; width: 100%; height: 100%; }
/* The logo body follows the text color (white on a dark surface), the wedge is always yellow */
.brand-mark__wedge { fill: var(--jbt-yellow); }
.brand-name { display: block; font-size: 1.05rem; font-weight: 600; color: var(--jbt-white); letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.25; }
.brand-subtitle { display: block; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--jbt-sidebar-muted); }

.side-nav {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.15rem;
  min-height: 0;
  padding: 0.75rem;
  overflow-y: auto;
  /* A thin, dark scrollbar instead of the wide light one of the system (the menu scrolls on a low window and on a phone) */
  scrollbar-width: thin;
  scrollbar-color: var(--jbt-sidebar-scroll) transparent;
}
/* Only browsers that do not know scrollbar-color (older Safari): Chrome from 121 ignores ::-webkit-scrollbar when the standard properties are set */
@supports not (scrollbar-color: auto) {
  .side-nav::-webkit-scrollbar { width: 8px; }
  .side-nav::-webkit-scrollbar-track { background: transparent; }
  .side-nav::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 4px; background: var(--jbt-sidebar-scroll); background-clip: content-box; }
  .side-nav::-webkit-scrollbar-thumb:hover { background: var(--jbt-sidebar-muted); background-clip: content-box; }
}
.side-group { display: flex; flex-direction: column; gap: 0.15rem; }
.side-section { margin: 1rem 0.6rem 0.3rem; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--jbt-sidebar-muted); }
.side-group:first-child .side-section { margin-top: 0.25rem; }
.side-note { margin: 0.75rem 0.6rem; font-size: 0.82rem; color: var(--jbt-sidebar-muted); }
.side-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.6rem 0.8rem;
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
  text-decoration: none;
  color: var(--jbt-sidebar-text);
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.side-link svg { flex: none; width: 19px; height: 19px; opacity: 0.85; }
.side-link:hover { background: var(--jbt-sidebar-hover); color: var(--jbt-white); }
/* Active item: yellow text on a 14% yellow background, solid icon */
.side-link[aria-current="page"] { background: var(--jbt-sidebar-active-bg); color: var(--jbt-sidebar-active-fg); font-weight: 600; }
.side-link[aria-current="page"] svg { opacity: 1; }

/* At the bottom the user card and under it two icon buttons in a row, each half the card width: theme toggle and
   sign-out */
.sidebar-foot { padding: 0.9rem 1rem 1.1rem; border-top: 1px solid var(--jbt-sidebar-border); }
.user-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.8rem 0.85rem;
  background: var(--jbt-sidebar-card);
  border: 1px solid var(--jbt-sidebar-border);
  border-radius: var(--jbt-radius-bubble);
}
.user-card-main { display: flex; align-items: center; gap: 0.7rem; min-width: 0; padding-bottom: 0.55rem; border-bottom: 1px solid var(--jbt-sidebar-border); }
.avatar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--jbt-anthracite);
  background: var(--jbt-yellow);
  border-radius: 50%;
}
/* The count of waiting receipts: a round yellow badge with an anthracite number (the yellow is a signal, never with white text) */
.sb-count {
  display: inline-grid;
  flex: none;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: auto;
  padding: 0 7px;
  box-sizing: border-box;
  border-radius: 999px;
  background: var(--jbt-yellow);
  color: var(--jbt-anthracite);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1;
}
.user-meta { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; line-height: 1.35; }
.user-meta strong { overflow: hidden; font-size: 0.88rem; font-weight: 600; color: var(--jbt-white); text-overflow: ellipsis; white-space: nowrap; }
.user-meta span { overflow: hidden; font-size: 0.72rem; color: var(--jbt-sidebar-muted); text-overflow: ellipsis; white-space: nowrap; }
.user-card-actions { display: flex; align-items: center; gap: 0.4rem; }

/* "Zobrazit jako" of the administrator in the user card: a label and a select (44 px on a touch screen and in the phone panel), tokens of the sidebar only */
.role-preview { display: flex; flex-direction: column; gap: 0.3rem; }
.role-preview__label { font-size: 0.72rem; color: var(--jbt-sidebar-muted); }
.role-preview__select {
  width: 100%;
  min-height: 36px;
  padding: 0 0.6rem;
  font: inherit;
  font-size: 0.85rem;
  color: var(--jbt-sidebar-text);
  background: var(--jbt-sidebar-hover);
  border: 1px solid var(--jbt-sidebar-border);
  border-radius: 8px;
  cursor: pointer;
}
.role-preview__select:hover { border-color: var(--jbt-yellow); }
.role-preview__select:focus-visible { outline: 2px solid var(--jbt-yellow); outline-offset: 2px; }
.role-preview__select option { color: var(--jbt-text); background: var(--jbt-surface); }
@media (pointer: coarse), (max-width: 899px) {
  .role-preview__select { min-height: 44px; }
}
/* The switch of the language: four buttons CS SK DE EN, the pressed one with a 2px yellow frame and bold text. In the user card of the sidebar a label
   "Jazyk" stands on the left (tokens of the sidebar only, like "Zobrazit jako" above), in the bar of the sign-in scene there are only the buttons (their
   label is for readers only). 44 px targets on a touch screen and in the phone panel. */
.lang-switch { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.lang-switch__label { font-size: 0.85rem; color: var(--jbt-sidebar-muted); }
.lang-switch__group { display: flex; align-items: center; gap: 2px; }
.lang-switch__btn {
  min-width: 36px;
  min-height: 32px;
  padding: 0 0.3rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--jbt-sidebar-muted);
  background: transparent;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}
.lang-switch__btn[aria-pressed="true"] { font-weight: 600; color: var(--jbt-white); border-color: var(--jbt-yellow); }
.lang-switch__btn:hover { border-color: var(--jbt-yellow); }
.lang-switch__btn:focus-visible { outline: 2px solid var(--jbt-yellow); outline-offset: 2px; }
.lang-switch--bar .lang-switch__group { gap: 0; }
@media (pointer: coarse), (max-width: 899px) {
  .lang-switch__btn { min-width: 44px; min-height: 44px; }
  /* The phone bar also holds the brand and the switch of the look, so its buttons are 44 px high and 36 px wide to fit a 360 px screen. */
  .lang-switch--bar .lang-switch__btn { min-width: 36px; }
}
@media (min-width: 900px) {
  .shell--auth .lang-switch__btn { color: var(--jbt-text-muted); }
  .shell--auth .lang-switch__btn[aria-pressed="true"] { color: var(--jbt-text); border-color: var(--jbt-yellow); }
}
/* The quiet bar above the content while a role is previewed */
.role-preview-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1rem;
  margin: 0 0 16px;
  padding: 8px 14px;
  font-size: 0.88rem;
  color: var(--jbt-text);
  background: var(--jbt-pill-wait-bg);
  border: 1px solid var(--jbt-border);
  border-left: 4px solid var(--jbt-yellow);
  border-radius: var(--jbt-radius-sm);
}
.role-preview-note .linkbtn { min-height: 44px; padding: 0 4px; color: inherit; }
@media (pointer: fine) and (min-width: 900px) { .role-preview-note .linkbtn { min-height: 28px; } }

/* Icon buttons (theme toggle, sign-out): a line icon, yellow on hover. In the phone bar they are 44 x 44 px squares,
   in the panel card each takes half the card width in a row. */
.theme-toggle, .icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  font: inherit;
  color: var(--jbt-sidebar-muted);
  background: var(--jbt-sidebar-hover);
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
.theme-toggle svg, .icon-action svg { width: 18px; height: 18px; }
.theme-toggle:hover, .icon-action:hover { color: var(--jbt-yellow); background: var(--jbt-sidebar-active-bg); border-color: var(--jbt-yellow); }
.user-card-actions .theme-toggle, .user-card-actions .icon-action { flex: 1 1 0; width: auto; }
/* A disabled sign-out (test mode, receipt in progress) keeps its place in the row, only dimmed and without a hover
   reaction */
.icon-action:disabled { opacity: 0.45; cursor: not-allowed; }
.icon-action:disabled:hover { color: var(--jbt-sidebar-muted); background: var(--jbt-sidebar-hover); border-color: transparent; }
@media (pointer: coarse) {
  .theme-toggle, .icon-action { min-width: 44px; min-height: 44px; }
  .side-link { min-height: 44px; }
}
/* Touch targets in the phone panel are always at least 44 px, even when the device reports a fine pointer */
@media (max-width: 899px) {
  .sidebar .theme-toggle, .sidebar .icon-action, .sidebar .side-link { min-height: 44px; }
}
/* Moon in light mode, sun in dark mode: switched by CSS from the three theme blocks, not by script */
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* Bar: on a phone at the top, in a scene without a sidebar at every width. Yellow bottom border of 2 px per the kit. */
.topbar {
  padding: env(safe-area-inset-top) max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  background: var(--jbt-sidebar-bg);
  color: var(--jbt-white);
  border-bottom: 2px solid var(--jbt-yellow);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--jbt-container);
  min-height: 56px;
  margin: 0 auto;
}
.topbar__brand { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.topbar .brand-mark { width: 24px; height: 25px; }
.topbar__title { margin: 0; font-size: 20px; font-weight: 600; line-height: 1; }
.topbar__side { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; }
.topbar .theme-toggle { width: 44px; height: 44px; color: var(--jbt-sidebar-text); background: transparent; border: 2px solid var(--jbt-text-muted); }
.topbar .theme-toggle:hover { color: var(--jbt-yellow); border-color: var(--jbt-yellow); }

/* Burger on the right of the phone bar: three lines, opens the slide-out panel (sidebar). Logo and name are on the
   left, the bottom of the logo sits on the text baseline. */
.shell:not(.shell--auth) .topbar__inner { position: relative; }
.menu-toggle {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  position: absolute;
  top: 50%;
  right: -4px;
  transform: translateY(-50%);
  padding: 0;
  color: var(--jbt-sidebar-text);
  background: transparent;
  border: 2px solid var(--jbt-text-muted);
  border-radius: var(--jbt-radius-btn);
  cursor: pointer;
}
.menu-toggle:hover, .menu-toggle[aria-expanded="true"] { color: var(--jbt-yellow); border-color: var(--jbt-yellow); }
.menu-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Label on yellow: always dark text */
.tag {
  padding: 3px 10px;
  background: var(--jbt-yellow);
  color: var(--jbt-anthracite);
  border-radius: var(--jbt-radius-sm);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Brand watermark: large, nearly transparent, bottom right, the content is above it */
.page-watermark {
  position: fixed;
  right: -130px;
  bottom: -160px;
  z-index: 0;
  width: 560px;
  color: var(--jbt-ink);
  opacity: 0.05;
  pointer-events: none;
}
.page-watermark svg { display: block; width: 100%; height: auto; }
@media (max-width: 899px) {
  .page-watermark { right: -110px; bottom: -120px; width: 380px; }
}

/* Content: at most 1120 px (1440 px in the overview of receipts) including padding, horizontally centered */
.content {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: var(--jbt-container);
  margin: 0 auto;
  padding: 1.5rem 2rem 2.5rem;
}
.content:focus { outline: none; }
@media (max-width: 899px) {
  .content { padding-left: max(1.1rem, env(safe-area-inset-left)); padding-right: max(1.1rem, env(safe-area-inset-right)); }
}
.container { margin: 0 auto; }
.container--narrow { max-width: 640px; }

.footer {
  position: relative;
  z-index: 1;
  padding: 8px max(var(--gutter), env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  text-align: center;
  font-size: 13px;
  color: var(--jbt-text-muted);
}

/* Steps: Vyfotit, Zkontrolovat, Odeslat, always side by side (the number in a circle, the name under it, a line between the circles) */
.steps { display: flex; align-items: flex-start; margin: 0 0 20px; padding: 0; list-style: none; }
.steps li { position: relative; display: flex; flex: 1 1 0; flex-direction: column; align-items: center; gap: 6px; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.25; text-align: center; color: var(--jbt-text-muted); }
.steps li:not(:first-child)::before { content: ""; position: absolute; top: 15px; left: calc(-50% + 22px); right: calc(50% + 22px); height: 2px; background: var(--jbt-border-control); }
.steps li.is-done + li::before, .steps li[aria-current="step"]::before { background: var(--jbt-ink); }
.steps__num {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--jbt-border-control);
  border-radius: 50%;
  background: var(--jbt-surface);
  color: var(--jbt-text-muted);
  font-size: 14px;
}
.steps__num svg { width: 18px; height: 18px; }
.steps__label { max-width: 100%; overflow-wrap: anywhere; }
.steps li[aria-current="step"] { color: var(--jbt-text); }
.steps li[aria-current="step"] .steps__num { background: var(--jbt-yellow); border-color: var(--jbt-yellow); color: var(--jbt-anthracite); }
.steps li.is-done { color: var(--jbt-text); }
.steps li.is-done .steps__num { background: var(--jbt-ink); border-color: var(--jbt-ink); color: var(--jbt-surface); }

/* Sign-in: button with the Microsoft icon (four squares in the text color) and a note under it */
.sign-in__text { color: var(--jbt-text-muted); }
.sign-in__btn svg { flex: none; width: 18px; height: 18px; fill: currentColor; }
.sign-in__note { margin: 12px 0 0; font-size: 0.85rem; color: var(--jbt-text-muted); }
.sign-in__expired { margin: 0 0 16px; padding: 10px 14px; border-left: 4px solid var(--jbt-yellow); border-radius: var(--jbt-radius-sm, 6px); background: var(--jbt-surface-2, var(--jbt-surface)); font-weight: 600; }

/* Cards */
.card {
  margin: 0 0 16px;
  padding: 24px;
  background: var(--jbt-surface);
  border: 1px solid var(--jbt-border);
  border-radius: var(--jbt-radius-md);
  box-shadow: var(--jbt-shadow);
}
.card > :last-child { margin-bottom: 0; }
@media (max-width: 479px) { .card { padding: 16px; } }

/* Buttons: never uppercase, always anthracite text on yellow */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 24px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: var(--jbt-text);
  background: var(--jbt-surface);
  border: 2px solid var(--jbt-border-control);
  border-radius: var(--jbt-radius-btn);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.btn:hover { border-color: var(--jbt-text); }
.btn--primary { background: var(--jbt-yellow); border-color: var(--jbt-yellow); color: var(--jbt-anthracite); }
.btn--primary:hover { background: var(--jbt-yellow-hover); border-color: var(--jbt-yellow-hover); }
.btn--secondary { background: var(--jbt-surface); }
/* A primary button that is not ready yet (something is still missing): grey instead of yellow, but still pressable, the press says what is missing (aria-disabled, never disabled) */
.btn--primary.btn--idle, .btn--primary.btn--idle:hover { background: var(--jbt-bg-alt); border-color: var(--jbt-border-control); color: var(--jbt-text-muted); }
.btn--block { width: 100%; }
/* The reject button is neutral until the user points at it, then it turns red; the approve button is the only yellow one. */
.btn--reject:hover:not(:disabled), .btn--reject:focus-visible { border-color: var(--jbt-error); color: var(--jbt-error); }
/* Discarding is red from the start (an outline and the text in the error colour, never a second filled button next to the yellow one) */
.btn--danger, .btn--danger:hover:not(:disabled) { color: var(--jbt-error); border-color: var(--jbt-error); }
.btn--danger:hover:not(:disabled) { background: var(--jbt-surface-2); }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn:disabled { opacity: .6; cursor: default; }
.btn > svg { flex: none; width: 18px; height: 18px; }
/* 40 px with a mouse in a wide window like the rest of the platform, 48 px under a finger and in a narrow window (a phone). */
@media (pointer: coarse), (max-width: 899px) {
  .btn { min-height: 48px; }
}
label.btn:focus-within { outline: 3px solid var(--jbt-ink); outline-offset: 2px; }

.linkbtn {
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--jbt-blue);
  background: none;
  border: 0;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.actions { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 600px) {
  .actions--row { flex-direction: row-reverse; justify-content: flex-start; }
  .actions--row .btn { width: auto; }
}

/* Messages */
.alert {
  margin: 0 0 16px;
  padding: 16px;
  background: var(--jbt-surface);
  border: 1px solid var(--jbt-border);
  border-left: 4px solid var(--jbt-error);
  border-radius: var(--jbt-radius-sm);
}
.alert > :last-child { margin-bottom: 0; }
.alert__list { margin: 0; padding-left: 20px; }
.alert__detail {
  margin: 8px 0;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
  color: var(--jbt-text-muted);
  overflow-wrap: anywhere;
}

.notice {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: var(--jbt-yellow-light);
  color: var(--jbt-anthracite);
  border-left: 4px solid var(--jbt-yellow);
  border-radius: var(--jbt-radius-sm);
  font-weight: 600;
}
.notice > :last-child { margin-bottom: 0; }
/* The notice is light yellow in both modes, so a link-like button in it keeps the dark text instead of the blue of the links. */
.notice .linkbtn { color: inherit; }
.notice--ok { background: var(--jbt-surface); color: var(--jbt-text); border: 1px solid var(--jbt-border); border-left: 4px solid var(--jbt-success); font-weight: 400; }

/* The state of a receipt as a pill with a dot and always a word (the colour only adds to it); the ws-tag is the quiet label of a value (the old .tag is the upper-case mark of the test mode). */
.pill { display: inline-flex; align-items: center; gap: 7px; min-height: 26px; padding: 0 11px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--ok { background: var(--jbt-pill-ok-bg); color: var(--jbt-pill-ok-fg); }
.pill--bad { background: var(--jbt-pill-bad-bg); color: var(--jbt-pill-bad-fg); }
.pill--wait { background: var(--jbt-pill-wait-bg); color: var(--jbt-pill-wait-fg); }
.pill--neutral { background: var(--jbt-surface-2); color: var(--jbt-text); border: 1px solid var(--jbt-border); }
.ws-tag { display: inline-flex; align-items: center; max-width: 100%; min-height: 24px; padding: 0 10px; overflow: hidden; font-size: 0.78rem; color: var(--jbt-text); text-overflow: ellipsis; white-space: nowrap; background: var(--jbt-surface-2); border: 1px solid var(--jbt-border); border-radius: 999px; }
/* The label that stands where the merchant of a receipt stands for a statement of a lost receipt (Čestné prohlášení): quiet like ws-tag, but in the weight of a name */
.statement-label { display: inline-flex; align-items: center; max-width: 100%; min-height: 24px; padding: 0 10px; overflow: hidden; font-size: 0.85rem; font-weight: 600; color: var(--jbt-text); text-overflow: ellipsis; white-space: nowrap; background: var(--jbt-surface-2); border: 1px solid var(--jbt-border); border-radius: 999px; }
/* Chips of the states and the search box above a list (Odeslané účtenky): the active chip is the yellow signal. */
.list-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 16px; }
.list-tools__chips { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; font: inherit; font-size: 0.86rem; font-weight: 600; color: var(--jbt-text); background: var(--jbt-surface); border: 1px solid var(--jbt-border-control); border-radius: 999px; cursor: pointer; }
.chip em { font-style: normal; font-size: 0.76rem; font-weight: 600; color: var(--jbt-text-muted); }
.chip:hover { border-color: var(--jbt-text); }
.chip[aria-pressed="true"] { color: var(--jbt-anthracite); background: var(--jbt-yellow); border-color: var(--jbt-yellow); }
.chip[aria-pressed="true"] em { color: var(--jbt-anthracite); opacity: 0.75; }
.chip:focus-visible { outline: 3px solid var(--jbt-ink); outline-offset: 2px; }
/* Ke schválení on a phone: no card around the list (the receipts are cards themselves), the summary under the heading, the two filters side by side. */
@media (max-width: 899px) {
  .ws-panel--pending { display: flex; flex-direction: column; padding: 0; background: none; border: 0; box-shadow: none; }
  .ws-panel--pending > .ws-notice { order: -2; }
  .ws-panel--pending > .ws-summary { order: -1; }
  .ws-panel--pending .ws-filter .field { flex: 1 1 calc(50% - 6px); min-width: 0; max-width: none; }
}
/* A narrow window: the chips are in two equal columns (as many rows as needed), 44 px high, the search field is under them over the whole width. */
@media (max-width: 899px) {
  .list-tools__chips { flex: 1 1 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .chip { justify-content: center; min-height: 44px; min-width: 0; padding-top: 4px; padding-bottom: 4px; line-height: 1.2; text-align: center; }
  .list-tools .list-search { flex: 1 1 100%; width: 100%; max-width: none; margin-left: 0; }
  .list-tools .list-search .input { min-height: 44px; }
}
/* On a phone the main action of Odeslané is an icon of 44 x 44 px beside the title; from 640 px it has its text. */
@media (max-width: 639px) {
  .page-head__actions .sent__back { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; }
  .sent__back-text { display: none; }
  .page-head--inline { align-items: flex-start; flex-wrap: nowrap; }
}
.list-search { position: relative; flex: 1 1 14rem; max-width: 20rem; margin-left: auto; }
.list-search .input { min-height: 38px; padding: 6px 40px 6px 12px; font-size: 0.9rem; background: var(--jbt-surface); border-radius: var(--jbt-radius-input); }
.list-search input[type="search"]::-webkit-search-cancel-button, .list-search input[type="search"]::-webkit-search-decoration { display: none; }
.list-search__clear { position: absolute; top: 50%; right: 4px; display: inline-grid; place-items: center; width: 32px; height: 32px; color: var(--jbt-text-muted); background: none; border: 0; border-radius: 8px; cursor: pointer; transform: translateY(-50%); }
.list-search__clear svg { width: 16px; height: 16px; }
@media (max-width: 899px) { .list-search__clear { right: 0; width: 44px; height: 44px; } .list-search__clear svg { width: 18px; height: 18px; } }
.list-search__clear:hover { color: var(--jbt-text); }
.list-search__clear:focus-visible { outline: 3px solid var(--jbt-ink); outline-offset: -3px; }
.avatar--small { width: 28px; height: 28px; font-size: 0.66rem; color: var(--jbt-text); background: var(--jbt-surface-2); border: 1px solid var(--jbt-border); }
.ws-table .table td.ws-cell-podatel { overflow: hidden; }
.ws-podatel { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ws-podatel .avatar { flex: none; }
.ws-podatel__mail { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-age { font-size: 0.84rem; color: var(--jbt-text-muted); }
.ws-doclink-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 10px; margin: -4px -10px; font-size: 0.84rem; font-weight: 600; color: var(--jbt-text); text-decoration: none; border-radius: 8px; white-space: nowrap; }
.ws-doclink-btn svg { flex: none; width: 17px; height: 17px; color: var(--jbt-text-muted); }
.ws-doclink-btn:hover { background: var(--jbt-surface-2); }
.ws-doclink-btn:focus-visible { outline: 3px solid var(--jbt-ink); outline-offset: -3px; }

/* The head of a sortable column is a button in the cell; the arrow shows the direction of the active one. */
.sort-btn { display: inline-flex; align-items: center; gap: 4px; padding: 0; font: inherit; font-size: inherit; font-weight: 600; color: inherit; background: none; border: 0; cursor: pointer; }
.sort-btn:hover { color: var(--jbt-text); }
.sort-btn--active { color: var(--jbt-text); }
.sort-btn:focus-visible { outline: 3px solid var(--jbt-ink); outline-offset: 2px; border-radius: 4px; }
.sort-btn__icon { width: 14px; height: 14px; opacity: 0.4; }
.sort-btn--active .sort-btn__icon { opacity: 1; }
.sort-btn__icon--up { transform: rotate(180deg); }
.table__amount .sort-btn { flex-direction: row-reverse; }
.ws-two b, .ws-two small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-two small { font-size: 0.78rem; color: var(--jbt-text-muted); }
.sent-comment { display: inline-flex; vertical-align: middle; margin-left: 6px; color: var(--jbt-text-muted); }
.sent-comment svg { width: 16px; height: 16px; }

.status { display: flex; align-items: center; gap: 12px; }
.spinner {
  flex: none;
  width: 22px;
  height: 22px;
  border: 3px solid var(--jbt-border);
  border-top-color: var(--jbt-ink);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

/* Start screen: from 900 px two columns (7 : 5), the hints as tiles on the left and the last sent receipts on the right; under 900 px
   everything is one column, the tiles are rows and only the newest receipt shows */
.home { display: grid; gap: 32px; align-items: start; }
.home__main { display: flex; flex-direction: column; }
.home__main .photo-actions { margin-top: 32px; }
/* The three hints are plain rows (no card): a light round mark with an icon, a stronger title and one muted sentence */
.home__tiles { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.home__tile { display: flex; align-items: flex-start; gap: 14px; }
.home__tile strong { display: block; font-weight: 600; color: var(--jbt-ink); }
.home__tile p { margin: 2px 0 0; font-size: 14px; line-height: 1.4; color: var(--jbt-text-muted); }
.home__tile-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--jbt-yellow-light) 70%, transparent);
  color: var(--jbt-anthracite);
}
.home__tile-icon svg { width: 22px; height: 22px; }
/* A small muted label over a group of the page (Naposledy odesláno, Přidat další účtenku, Další účtenka) */
.section-label { margin: 0 0 8px 2px; font-size: 13px; font-weight: 600; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; color: var(--jbt-text-muted); }
.home__recent-list { margin: 0; padding: 0; list-style: none; background: var(--jbt-surface); border: 1px solid var(--jbt-border); border-radius: var(--jbt-radius-md); }
.home__recent-list li { padding: 0; border-top: 1px solid var(--jbt-border); }
.home__recent-list li:first-child { border-top: 0; }
.home__recent-open { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; margin: 0; padding: 14px 16px; font: inherit; color: inherit; text-align: left; background: none; border: 0; border-radius: var(--jbt-radius-md); cursor: pointer; }
.home__recent-open:hover { background: var(--jbt-bg-alt); }
.home__recent-open:focus-visible { outline: 3px solid var(--jbt-ink); outline-offset: -3px; box-shadow: inset 0 0 0 3px var(--jbt-focus-ring); }
.home__recent-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.home__recent-main strong { overflow-wrap: anywhere; }
.home__recent-meta { font-size: 13px; color: var(--jbt-text-muted); }
.home__recent-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.home__recent-amount { font-weight: 600; white-space: nowrap; }
.home__lost { margin: 32px 0 0; text-align: center; }
.home__lost a { font-weight: 400; color: var(--jbt-text-muted); }
.home__upload { display: none; }
.btn__text { min-width: 0; overflow-wrap: anywhere; }
/* The pairs that add another receipt (Zkontrolovat, Odesláno): the same pair as on the start screen at every width, the labels short and on one line */
.photo-actions--short { flex-direction: row-reverse; gap: 16px; }
.photo-actions--short .btn { flex: 1 1 0; width: auto; min-width: 0; min-height: 56px; padding: 8px 12px; gap: 8px; line-height: 1.2; }
.photo-actions--short .btn > svg { width: 22px; height: 22px; }
.photo-actions--short .btn__text { white-space: nowrap; overflow-wrap: normal; }
.photo-actions--short .btn--disabled { opacity: .6; pointer-events: none; }
/* On a phone and a tablet the camera (yellow, on the right under the right thumb) and the gallery (white, on the left) are two equal buttons in one row; the row is
   reversed, so the inputs keep their order (camera, gallery, upload) */
@media not all and (pointer: fine) and (min-width: 900px) {
  .photo-actions { flex-direction: row-reverse; gap: 16px; }
  .photo-actions .btn { flex: 1 1 0; width: auto; min-width: 0; min-height: 56px; padding: 8px 12px; gap: 8px; line-height: 1.2; }
  .photo-actions .btn > svg { width: 22px; height: 22px; }
}
@media (pointer: fine) and (min-width: 900px) {
  .photo-actions:not(.photo-actions--short) .home__camera, .photo-actions:not(.photo-actions--short) .home__gallery { display: none; }
  .home__upload { display: flex; }
}
@media (max-width: 899px) {
  .home__recent-list li:nth-child(n+2) { display: none; }
}
@media (min-width: 900px) {
  .home { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: stretch; }
  .home:not(:has(.home__recent)) { grid-template-columns: minmax(0, 7fr); }
  .home__tile-icon { width: 42px; height: 42px; }
  .home__tile-icon svg { width: 24px; height: 24px; }
}

/* Review: on a computer the photo on the left (it stays while scrolling), the form on the right */
.review { display: grid; gap: 16px; }
.review__photo { margin: 0; }
.photo { margin: 0 0 8px; text-align: center; }
.photo img {
  display: block;
  width: 100%;
  max-height: 36vh;
  margin: 0 0 12px;
  object-fit: contain;
  background: var(--jbt-surface);
  border: 1px solid var(--jbt-border);
  border-radius: var(--jbt-radius-md);
}
.photo--zoom img { max-height: none; }
.photo__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.photo__caption { display: none; }
/* In a narrow window the photo is a compact strip (a thumbnail, the merchant and the two buttons) so the first field is in sight; the
   button Zvětšit fotku brings the big photo back (photo--zoom). */
@media (max-width: 899px) {
  .photo:not(.photo--zoom) {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-areas: "image actions";
    gap: 4px 16px;
    align-items: center;
    padding: 0;
    text-align: left;
  }
  .photo:not(.photo--zoom) img { grid-area: image; width: 52px; height: 68px; max-height: none; margin: 0; object-fit: cover; border-radius: var(--jbt-radius-sm); }
  .photo:not(.photo--zoom) .photo__actions { grid-area: actions; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; }
  /* Zvětšit fotku and Vyfotit znovu are quiet underlined text links here, not buttons with a frame (the touch target stays 44 px high) */
  .photo__actions .btn { min-height: 44px; min-width: 44px; padding: 8px 0; justify-content: flex-start; font-size: 15px; font-weight: 400; color: var(--jbt-text-muted); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
  .photo__actions .btn:hover { color: var(--jbt-ink); border: 0; background: none; }
}
/* Columns start by content width, not window width: from 900 px the sidebar takes 264 px, so the break is 720 + 264 =
   984 px and from 900 to 983 px there is only one column */
@media (min-width: 720px) and (max-width: 899px), (min-width: 984px) {
  /* The photo column is 360 px on a wide window and shrinks with it, so the form keeps at least 380 px */
  .review { grid-template-columns: clamp(240px, 36%, 360px) minmax(0, 1fr); gap: 24px; align-items: start; }
  .review__photo { position: sticky; top: 16px; }
  .photo img { max-height: calc(100vh - 160px); }
}

/* Form */
.form { display: flex; flex-direction: column; gap: 24px; }
.form > * { margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label { font-size: 14px; font-weight: 600; }
.field__hint { margin: 0; font-size: 13px; color: var(--jbt-text-muted); }
.field__error { margin: 0; font-size: 13px; font-weight: 600; color: var(--jbt-error); }
/* Hint on the left, character counter on the right in the same row */
.field__meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.field__count { flex: none; margin-left: auto; white-space: nowrap; }
.field__optional { font-weight: 400; color: var(--jbt-text-muted); }
.field__more > summary { display: inline-block; font-size: 13px; color: var(--jbt-text-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.field__more > p { margin: 6px 0 0; }

.input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px; /* below 16 px iPhone zooms the page when typing */
  color: var(--jbt-text);
  background: var(--jbt-surface);
  border: 1px solid var(--jbt-border-control);
  border-radius: var(--jbt-radius-input);
}
.input:focus { outline: none; border-color: var(--jbt-ink); box-shadow: 0 0 0 3px var(--jbt-yellow); }
.input[aria-invalid="true"] { border-color: var(--jbt-error); }
textarea.input { min-height: 88px; resize: vertical; }
/* The purpose: two lines at the start, grows with the text (the script sets the height), at most about twelve lines */
textarea.input--grow { min-height: 0; max-height: 18rem; overflow-y: auto; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 359px) { .row { grid-template-columns: 1fr; } }

/* Date field: browsers, especially on iPhone, give it their own width and height. Here it gets the same look and size
   as the other fields and does not overflow the card. */
.input { max-width: 100%; }
input[type="date"].input {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  min-width: 0;
  height: 51px; /* same height as the text fields */
  line-height: 1.2;
}
input[type="date"].input::-webkit-date-and-time-value { min-height: 1.2em; text-align: left; }
input[type="date"].input::-webkit-calendar-picker-indicator { margin-left: 4px; }

/* VAT by rate section: collapsed to a summary row as tall as the other fields (native details), compact rows below
   it. The border and surfaces are tokens, so dark mode needs no new token. */
.vat__box {
  overflow: hidden;
  background: var(--jbt-surface);
  border: 1px solid var(--jbt-border-control);
  border-radius: var(--jbt-radius-sm);
}
.vat__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 8px 0 14px;
  list-style: none;
  cursor: pointer;
}
.vat__summary::-webkit-details-marker { display: none; }
/* A section with an error cannot be collapsed: the row does not look like a control */
.vat__summary--locked { cursor: default; }
.vat__summary--locked .vat__action { color: var(--jbt-error); }
.vat__summary:focus-visible { outline: 3px solid var(--jbt-ink); outline-offset: -3px; box-shadow: inset 0 0 0 3px var(--jbt-focus-ring); }
.vat__box[open] > .vat__summary { border-bottom: 1px solid var(--jbt-border); }
.vat__value {
  /* Zero basis and width: a long summary shortens with dots and never widens the card around it */
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  color: var(--jbt-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vat__action {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--jbt-ink);
}
.vat__action svg { width: 20px; height: 20px; transition: transform .15s ease; }
.vat__box[open] .vat__action svg { transform: rotate(180deg); }
.vat__body { display: flex; flex-direction: column; gap: 8px; padding: 8px; background: var(--jbt-bg-alt); }
.vat__row {
  display: grid;
  grid-template-columns: minmax(54px, .8fr) minmax(0, 1.2fr) minmax(0, 1.2fr) 44px;
  gap: 6px 8px;
  align-items: end;
}
.vat__row .field { gap: 4px; }
.vat__row .field__label { font-size: 13px; white-space: nowrap; }
.vat__row .field--compact .input { padding: 8px; }
@media (max-width: 399px) {
  .vat__body { padding: 6px; }
  .vat__row { gap: 6px; }
  .vat__row .field--compact .input { padding: 8px 6px; }
}
.vat__errors { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 2px; }
.vat__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--jbt-text-muted);
  background: var(--jbt-surface);
  border: 1px solid var(--jbt-border-control);
  border-radius: var(--jbt-radius-btn);
  cursor: pointer;
}
.vat__remove svg { width: 20px; height: 20px; }
.vat__remove:hover { color: var(--jbt-ink); border-color: var(--jbt-ink); }
.vat__remove:focus-visible, .vat__add:focus-visible { outline: 3px solid var(--jbt-ink); outline-offset: 2px; box-shadow: 0 0 0 3px var(--jbt-focus-ring); }
.vat__add {
  align-self: flex-start;
  min-height: 44px;
  padding: 0 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--jbt-ink);
  background: none;
  border: 0;
  text-decoration: underline;
  text-decoration-color: var(--jbt-yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  cursor: pointer;
}
.field--compact .input { min-height: 44px; padding: 10px; }
.field--spaced { margin-bottom: 16px; }

/* Payment method: two equal segments in one frame, the chosen one is yellow with anthracite text (the colour never stands alone: the
   chosen segment is also exposed as aria-checked). 44 px high on a phone and in a narrow window, 40 px with a mouse. */
.payment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  background: var(--jbt-surface);
  border: 2px solid var(--jbt-border-control);
  border-radius: var(--jbt-radius-input);
  overflow: hidden;
}
.payment__seg {
  min-height: 44px;
  padding: 0 8px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--jbt-text);
  background: transparent;
  border: 0;
  cursor: pointer;
  overflow-wrap: anywhere;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.payment__hint { font-size: 0.8125rem; font-weight: 400; color: var(--jbt-text-muted); }
.payment__seg[aria-checked="true"] .payment__hint { color: var(--jbt-anthracite); }
.payment__seg + .payment__seg { border-left: 1px solid var(--jbt-border-control); }
.payment__seg[aria-checked="true"] { color: var(--jbt-anthracite); background: var(--jbt-yellow); }
.payment__seg:focus-visible { outline: 3px solid var(--jbt-ink); outline-offset: -3px; box-shadow: inset 0 0 0 3px var(--jbt-focus-ring); }
@media (pointer: fine) and (min-width: 900px) { .payment__seg { min-height: 40px; } }

/* The approver and the send block are ordinary parts of the page, nothing of the form is stuck to the window (KH-480). */
.actionbar .alert, .actionbar > .notice { margin-bottom: 12px; }
.approver { margin: 32px 0 0; padding: 0; }
.approver .field { margin: 0; }
.approver .field__label { margin-bottom: 4px; }
.approver .field__hint { margin: 4px 0 0; font-size: 14px; }
.approver > .alert, .approver > .notice { margin: 0; }
.send-block { margin: 24px 0 16px; }
/* The send bar is a part of the page, it is not pinned to the bottom edge of the window (the creator wanted it that way while the data of a receipt are filled in). */
/* The send block has no card around it: Zahodit is a square red button with the bin icon on the left, Odeslat takes the rest of the row on the right (on a phone over the whole
   width; from 640 px at most 20 rem on the right). The open question has its own line over the whole width. */
.actionbar { --bar-btn: 56px; }
@media (pointer: fine) and (min-width: 900px) { .actionbar { --bar-btn: 44px; } }
.actionbar__row { display: grid; grid-template-columns: var(--bar-btn) minmax(0, 1fr); grid-template-areas: "discard send"; gap: 12px; }
.actionbar__row:not(:has(.actionbar__discard)) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "send"; }
.actionbar__send { grid-area: send; width: 100%; min-height: var(--bar-btn); }
.actionbar__discard { grid-area: discard; display: flex; }
.actionbar__trash { flex: 1; width: 100%; min-width: 0; min-height: var(--bar-btn); padding: 0; }
.actionbar__trash svg { width: 24px; height: 24px; }
.actionbar__ask { width: 100%; }
.actionbar__ask p { margin: 0 0 12px; font-weight: 600; }
.actionbar__row .actionbar__ask .btn { width: auto; flex: none; }
.actionbar__discard:has(.actionbar__ask) { grid-area: auto; grid-column: 1 / -1; grid-row: 2; }
@media (max-width: 639px) {
  .actionbar__row:has(.actionbar__ask) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "send"; }
}
@media (min-width: 640px) {
  /* The first column takes the free space, so Odeslat stays at the right edge and shrinks together with the window instead of wrapping */
  .actionbar__row { grid-template-columns: minmax(0, 1fr) var(--bar-btn) minmax(0, 20rem); grid-template-areas: ". discard send"; }
  .actionbar__row:not(:has(.actionbar__discard)) { grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); grid-template-areas: ". send"; }
}

/* Done: the check mark in one row with the heading, the sentence about Teams under it */
.done__head { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0 0 8px; text-align: center; }
.done__head h1 { margin: 0; }
.done__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--jbt-yellow);
  color: var(--jbt-anthracite);
}
.done__icon svg { width: 24px; height: 24px; }
.done__lead { margin: 0 0 24px; color: var(--jbt-text-muted); text-align: center; }

/* Diagnostics */
.checks { margin: 0 0 16px; padding: 0; list-style: none; }
.check { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--jbt-border); }
.check:last-child { border-bottom: 0; }
.check__mark { flex: none; width: 20px; font-weight: 600; }
.check--ok .check__mark { color: var(--jbt-success); }
.check--bad .check__mark { color: var(--jbt-error); }
.check--warn .check__mark { color: var(--jbt-warning); }

/* Focus must be visible on the page surface (dark outline, light in dark mode), on the dark bar and in the panel
   (yellow) */
:focus-visible { outline: 3px solid var(--jbt-ink); outline-offset: 2px; }
/* What the script focuses for a reader (the heading of a new view, the main area, a panel with tabindex -1; buttons with tabindex -1, like the segments of the payment, keep their ring) is not a control: no frame around a heading or a text,
   and no grey flash when a finger taps a card or a link. The controls keep their ring. */
:is(h1, h2, h3, main, section, aside, div):not([role="radiogroup"])[tabindex="-1"]:focus, :is(h1, h2, h3, main, section, aside, div):not([role="radiogroup"])[tabindex="-1"]:focus-visible { outline: none; }
html { -webkit-tap-highlight-color: transparent; }
.topbar :focus-visible, .sidebar :focus-visible { outline-color: var(--jbt-yellow); }
/* No outline after a tap or mouse click (only for keyboard and screen reader), and no flash on touch */
.topbar :focus:not(:focus-visible), .sidebar :focus:not(:focus-visible) { outline: none; }
.topbar, .sidebar { -webkit-tap-highlight-color: transparent; }
.side-link:focus-visible { outline-offset: -3px; }

/* List of receipts of one submission: expandable cards, only one open at a time */
.receipt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.receipt-item {
  background: var(--jbt-surface);
  border: 1px solid var(--jbt-border);
  border-radius: var(--jbt-radius-md);
  box-shadow: var(--jbt-shadow);
}
.receipt-item--sent { background: var(--jbt-bg-alt); }
.receipt-item__bar { display: flex; align-items: center; gap: 12px; padding: 12px 12px 4px 16px; }
.receipt-item__head {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 44px;
  padding: 4px 0;
  font: inherit;
  text-align: left;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
.receipt-item__head:focus-visible { outline: 3px solid var(--jbt-ink); outline-offset: 2px; }
.receipt-item__title { font-size: 13px; font-weight: 400; color: var(--jbt-text-muted); }
.receipt-item__summary { font-size: 17px; font-weight: 600; color: var(--jbt-ink); overflow-wrap: anywhere; }
.receipt-item__part { font-size: 14px; color: var(--jbt-text-muted); }
.receipt-item__status { display: inline-flex; align-self: center; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.receipt-item__status svg { flex: none; width: 18px; height: 18px; }
.receipt-item__status .spinner { width: 16px; height: 16px; border-width: 2px; }
.receipt-item__status--queued { color: var(--jbt-text-muted); }
.receipt-item__status--sent { color: var(--jbt-success); }
.receipt-item__status--failed { color: var(--jbt-error); }
.send-note { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-weight: 600; }
.receipt-item__error { margin: 0; padding: 0 16px 12px; }
.receipt-item__body { padding: 8px 16px 20px; border-top: 0; }
.receipt-item__body .card { box-shadow: none; border: 0; padding: 0; margin: 0; }
/* Add another receipt: a small muted heading and the pair of buttons under it, no card around them, 32 px of air above */
.receipt-add { margin: 32px 0 0; }
.receipt-add__hint { margin: 8px 0 0; }
.btn--disabled { opacity: .6; cursor: default; pointer-events: none; }
.receipt-item__ask { padding: 0 16px 16px; }
.receipt-item__ask p { font-weight: 600; margin-bottom: 12px; }

/* Done screen: one white box with a row for each sent receipt: the merchant and the amount are the main thing, the internal number is small under the merchant */
.done-list { list-style: none; margin: 24px 0 16px; padding: 0; background: var(--jbt-surface); border: 1px solid var(--jbt-border); border-radius: var(--jbt-radius-md); }
.done-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px; border-top: 1px solid var(--jbt-border); }
.done-list li:first-child { border-top: 0; }
.done-list__main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.done-list__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.done-list__shop, .done-list__amount { font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--jbt-ink); }
.done-list__shop { overflow-wrap: anywhere; }
.done-list__amount { white-space: nowrap; }
.done-list__number { font-size: 13px; font-weight: 400; color: var(--jbt-text-muted); }
.done-list__photo { font-size: 13px; font-weight: 400; color: var(--jbt-text-muted); }
.done__quiet { margin: 16px 2px 0; font-size: 14px; color: var(--jbt-text-muted); }
.done__next { margin-top: 32px; }
.btn--block.sent-link { justify-content: space-between; padding: 8px 18px; }
/* One quiet note instead of a yellow block (the paper original, the app can be closed), and the two actions side by side from 600 px */
.done__note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  padding: 12px 16px;
  background: var(--jbt-surface-2);
  border: 1px solid var(--jbt-border);
  border-radius: var(--jbt-radius-sm);
  font-size: 15px;
}
.done__note svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--jbt-text-muted); }
.done__note p { margin: 0; }
.done__note .send-note { margin: 4px 0 0; font-weight: 600; }
.done__actions { display: flex; flex-direction: column; gap: 12px; }
.done__actions .btn { width: 100%; min-height: 48px; }
.card .done__actions .btn { margin: 0; }
@media (min-width: 600px) {
  .done__actions { flex-direction: row; }
  .done__actions .btn { width: auto; flex: 0 1 auto; }
}

/* Ztratil jsem účtenku: the text with the template to download, then the choice of a photo, or the form of the chosen one (the preview, the cost center,
   the approver and the send bar, nothing of a receipt) */
.lost__text { margin: 0 0 16px; }
.lost__pick h2, .lost__details h2 { margin: 0 0 12px; font-size: 1.1rem; }
.lost__photo { margin: 0 0 16px; }
.lost__photo img {
  display: block;
  width: 100%;
  max-height: 40vh;
  object-fit: contain;
  background: var(--jbt-surface);
  border: 1px solid var(--jbt-border);
  border-radius: var(--jbt-radius-md);
}
.lost__details .field { margin: 0; }
@media (min-width: 600px) { .lost__template { display: flex; width: fit-content; margin-inline: auto; } }

/* Locked form fields (sending, or the receipt is already sent): a fieldset without a border */
.form__lock { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.form__lock:disabled { opacity: .7; }

/* Overview of sent receipts */
.sent-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sent-item { margin: 0; padding: 16px; }
.sent-item__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sent-item__shop { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sent-item__amount { font-weight: 600; white-space: nowrap; }
.sent-item__top + .sent-item__foot { margin-top: 12px; }
.sent-item__meta { margin: 4px 0 8px; overflow: hidden; font-size: 14px; color: var(--jbt-text-muted); text-overflow: ellipsis; white-space: nowrap; }
.sent-item__foot, .ws-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; min-width: 0; }
.ws-card__foot .ws-podatel { flex: 1 1 auto; min-width: 0; }
.ws-card__foot .ws-age { flex: none; }
.sent-item__state { margin: 0; font-weight: 600; }
.sent-item__date { font-weight: 400; color: var(--jbt-text-muted); }
.sent__state--Schvaleno, .sent__state--Zauctovano { color: var(--jbt-success); }
.sent__state--Zamitnuto { color: var(--jbt-error); }
.sent__state--CekaNaSchvaleni, .sent__state--Neznamy { color: var(--jbt-text); }
.sent__state--loading { display: flex; align-items: center; gap: 8px; color: var(--jbt-text-muted); font-weight: 600; }
.sent-item__comment { margin: 8px 0 0; padding: 8px 12px; font-size: 15px; background: var(--jbt-bg-alt); border-radius: var(--jbt-radius-sm); overflow-wrap: break-word; }
.sent-screen { max-width: 640px; margin: 0 auto; }
.sent-clear { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--jbt-border); }
.card .sent-link { margin-top: 12px; }

/* Form of one receipt in two parts of one card: what the AI read (the submitter checks it) and what the submitter fills in (yellow edge
   on the left), a plain line between them */
.form--parts { gap: 0; }
.form--parts > .form__lock { gap: 0; }
.part { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 20px; }
.form--parts .part { background: none; border: 0; border-radius: 0; box-shadow: none; }
.form--parts .part--human { margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--jbt-border); }
/* (the card of the open receipt resets the padding of a .card inside it, so the parts say their own) */
.part, .receipt-item__body .form--parts .part { padding: 0; }
.form--parts .part--human, .receipt-item__body .form--parts .part--human { padding-top: 24px; }
/* The two groups have a calm heading, no chips and no coloured edge: Z dokladu (with one sentence) and Doplňte */
.part__head { display: flex; flex-direction: column; gap: 4px; }
.part__head h2 { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; color: var(--jbt-text-muted); }
.part__intro { margin: 0; font-size: 14px; color: var(--jbt-text-muted); }

/* The four fields to check: Obchodník over the width, under it Datum, Celková částka and Měna in this order (Měna next to the amount).
   Under 720 px: Obchodník and Datum over the width, the amount twice as wide as the currency under them. */
.review__fields {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-areas: "shop shop" "date date" "amount currency";
  gap: 16px 12px;
  align-items: start;
}
.review__fields > .field { min-width: 0; }
.review__shop { grid-area: shop; }
.review__date { grid-area: date; }
.review__amount { grid-area: amount; }
.review__currency { grid-area: currency; }
.review__currency-error { grid-column: 1 / -1; margin: 0; }
/* The sentence about the super approver of a receipt over the limit: the ordinary notice over the whole width under the amount (its colours are the tokens of .notice). */
.review__limit { grid-column: 1 / -1; margin: 0; }
@media (min-width: 720px) {
  /* the minimums keep the labels on one line and the date field readable when the form is only about 380 px wide (720 to 899 px, beside the photo) */
  .review__fields { grid-template-columns: minmax(132px, 6fr) minmax(126px, 5fr) minmax(76px, 3fr); grid-template-areas: "shop shop shop" "date amount currency"; }
}

/* The amount and the currency alone (the form of a statement of a lost receipt): the amount twice as wide as the currency at every width, after the rules above so they win. */
.review__fields--amount { grid-template-columns: 2fr 1fr; grid-template-areas: "amount currency"; }

/* IČO, DIČ, number of the receipt and VAT: a collapsed row with the count of the values (a native details) */
.review__extra { border: 0; border-top: 1px solid var(--jbt-border); border-radius: 0; background: none; }
.review__extra-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 0;
  list-style: none;
  cursor: pointer;
}
.review__extra-summary::-webkit-details-marker { display: none; }
.review__extra-summary--locked { cursor: default; }
.review__extra-title { flex: 1; min-width: 0; font-weight: 600; color: var(--jbt-text); }
.review__extra-count { flex: none; font-size: 14px; font-weight: 600; color: var(--jbt-text-muted); }
.review__extra-summary svg { flex: none; width: 20px; height: 20px; transition: transform .15s ease; }
.review__extra[open] > .review__extra-summary svg { transform: rotate(180deg); }
.review__extra[open] > .review__extra-summary { border-bottom: 0; }
.review__extra-summary:focus-visible { outline: 3px solid var(--jbt-ink); outline-offset: -3px; box-shadow: inset 0 0 0 3px var(--jbt-focus-ring); border-radius: var(--jbt-radius-input); }
.review__extra-body { display: flex; flex-direction: column; gap: 16px; padding: 8px 0 8px; }
@media (prefers-reduced-motion: reduce) { .review__extra-summary svg { transition: none; } }

/* Approver decision screen */
.decision__number { margin: 0 0 12px; font-size: 1.1rem; font-weight: 600; color: var(--jbt-ink); }
.decision__facts { margin: 0 0 16px; }
.decision__facts > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid var(--jbt-border); }
.decision__facts dt { color: var(--jbt-text-muted); }
.decision__facts dd { min-width: 0; max-width: 100%; margin: 0; font-weight: 600; text-align: right; overflow-wrap: break-word; }
.decision__result { margin-top: 16px; }
.decision__links { margin-top: 16px; }

/* Overview of receipts for approvers: tabs, cards (one column on a phone, two from 640 px), a table from a window
   width of 1366 px. Look per the platform brand kit (BRANDKIT.md §6 to §8, §10). Yellow is a signal (active tab,
   waiting state) and always has anthracite text. */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 10;
  padding: 8px 16px;
  color: var(--jbt-anthracite);
  background: var(--jbt-yellow);
  border-radius: 9px;
}
.skip-link:focus {
  left: 16px;
  top: 8px;
  display: flex;
  align-items: center;
  min-height: 44px;
  outline: 3px solid var(--jbt-ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px var(--jbt-focus-ring);
}
.ws-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
  padding: 12px 16px;
  background: var(--jbt-yellow-light);
  color: var(--jbt-anthracite);
  border: 1px solid var(--jbt-yellow);
  border-radius: 10px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
/* A small exclamation mark before the text, decoration only (screen readers read it as empty text) */
.ws-banner::before {
  content: "!";
  content: "!" / "";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1;
  border: 2px solid var(--jbt-anthracite);
  border-radius: 50%;
}
/* The h1 of the overview names the section and looks like the h1 of every other screen (size, weight and margin come from h1); it is also the hook of the focus after a change of the section */
.ws-heading { text-wrap: balance; }
.ws-empty, .users__empty { padding: 2rem 1rem; text-align: center; color: var(--jbt-text-muted); overflow-wrap: anywhere; }
/* The fields share the row and grow up to the width of a field (22rem), so one or two fields (Ke schválení: Schvalovatel and Podatel) stand next to
   each other from the left instead of being spread over the whole row, five (Historie) share it, and on a phone each takes the whole width. */
.ws-filter { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.ws-filter .field { flex: 1 1 160px; min-width: 0; max-width: 22rem; }
.ws-filter .field__label { font-size: 0.82rem; color: var(--jbt-text-muted); }
.ws-filter .input, .ws-search__input { background: var(--jbt-surface-2); border-radius: var(--jbt-radius-input); }
.ws-filter .input:focus { border-color: var(--jbt-ink); box-shadow: 0 0 0 3px var(--jbt-yellow); }
.ws-export { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.ws-export p, .ws-export .alert { margin: 0; }
.ws-export .btn { width: 100%; }
.ws-export__row { display: flex; flex-direction: column; gap: 8px; }
/* Search in Historie: in the second row on the left before the download buttons, on a phone above them over the whole width */
.ws-search { position: relative; min-width: 0; }
.ws-search__input { padding-right: 48px; }
.ws-search__input::-webkit-search-cancel-button, .ws-search__input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.ws-search__clear {
  position: absolute;
  top: 50%;
  right: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  color: var(--jbt-text-muted);
  background: none;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  transform: translateY(-50%);
}
.ws-search__clear svg { width: 18px; height: 18px; }
.ws-search__clear:hover { color: var(--jbt-text); }
.ws-search__clear:focus-visible { outline: 3px solid var(--jbt-ink); outline-offset: -3px; }
@media (min-width: 768px) {
  .ws-export .btn { width: auto; align-self: flex-start; }
  .ws-export__row { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .ws-export__row .btn { align-self: center; }
  .ws-search { flex: 1 1 16rem; max-width: 28rem; }
}
.ws-summary { margin: 0 0 16px; font-size: 0.9rem; overflow-wrap: anywhere; }

.ws-cards { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ws-card {
  padding: 16px;
  background: var(--jbt-surface-2);
  border: 1px solid var(--jbt-border);
  border-radius: var(--jbt-radius-md);
  box-shadow: var(--jbt-shadow-rest);
  animation: ws-fade-up .3s ease both;
  /* A grid item otherwise does not shrink below the longest unbreakable text */
  min-width: 0;
}
.ws-card:nth-child(2) { animation-delay: 40ms; }
.ws-card:nth-child(3) { animation-delay: 80ms; }
.ws-card:nth-child(4) { animation-delay: 120ms; }
.ws-card:nth-child(n+5) { animation-delay: 160ms; }
@keyframes ws-fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.ws-card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
/* Selection on a card (Historie): a checkbox in a label with a 44 x 44 px touch target; negative margins keep it in
   the card header, so the header stays the same height. */
.ws-card__top--pick { align-items: center; }
.ws-card__pick, .ws-pick-all { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ws-card__pick { flex: none; min-width: 44px; min-height: 44px; margin: -10px 0 -10px -10px; }
.ws-pick-all { min-height: 44px; gap: 8px; padding-right: 12px; font-size: 0.9rem; font-weight: 600; }
.ws-pick-all .ws-pick { margin: 0 0 0 4px; }
.ws-cards-tools { margin: 0 0 4px; }
.ws-card__shop { min-width: 0; font-size: 1rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-card__amount { flex: none; font-size: 1.08rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ws-card__state { margin: 8px 0; }
.ws-card__wait { margin-left: 8px; font-size: 0.85rem; color: var(--jbt-text-muted); }
.ws-card__line { margin: 0; font-size: 0.9rem; color: var(--jbt-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The card Detail is a native details element: the browser handles keyboard and screen reader, the arrow is a CSS
   border rotated by 45 degrees. */
.ws-card__more { margin-top: 4px; }
.ws-card__more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--jbt-ink);
  list-style: none;
  cursor: pointer;
}
.ws-card__more summary::-webkit-details-marker { display: none; }
.ws-card__more summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 2px solid var(--jbt-text-muted);
  border-bottom: 2px solid var(--jbt-text-muted);
  transform: rotate(45deg);
}
.ws-card__more[open] summary::after { transform: rotate(-135deg); border-color: var(--jbt-ink); }
.ws-card__more[open] summary { color: var(--jbt-ink); border-bottom: 1px solid var(--jbt-border); margin-bottom: 8px; }
.ws-card__more summary::after { transition: transform .15s ease; }
/* Open card: the same language as an open row of the table, a yellow signal bar on the left edge and a stronger border and surface. */
.ws-card:has(> .ws-card__more[open]), .sent-item:has(.ws-card__more[open]) {
  background: var(--jbt-surface);
  border-color: var(--jbt-border-control);
  box-shadow: inset 5px 0 0 var(--jbt-yellow), var(--jbt-shadow);
}
.ws-card:has(> .ws-card__more[open]) .ws-card__shop { font-weight: 600; }
.ws-card__more[open] > :not(summary) { animation: ws-fade-up .2s ease both; }
.ws-card__more summary:focus-visible { outline: 3px solid var(--jbt-ink); outline-offset: -3px; box-shadow: 0 0 0 3px var(--jbt-focus-ring); border-radius: 8px; }
.ws-facts { margin: 0 0 12px; }
/* A fact on a card (a phone) is a column: the small grey label above, the value under it from the left edge, for every fact the same way (a short
   date stands exactly where a long e-mail does). The value takes the whole width, long text wraps at spaces, an e-mail address after the @ (value.js),
   and overflow-wrap: break-word only saves a line that would still overflow. The Detail of a row of the table (a computer) turns it into a line below. */
.ws-facts > div { display: flex; flex-direction: column; flex-wrap: wrap; align-items: flex-start; gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid var(--jbt-border); }
.ws-facts > div:last-child { border-bottom: 0; }
.ws-facts dt { min-width: 0; max-width: 100%; font-size: 0.82rem; font-weight: 600; color: var(--jbt-text-muted); overflow-wrap: break-word; }
.ws-facts dd { min-width: 0; max-width: 100%; margin: 0; font-size: 0.9rem; font-weight: 600; text-align: left; overflow-wrap: break-word; }
/* The Detail of a card: the document on top over the whole width (up to 220 px high), the facts in two columns, Účel over both. */
.ws-card__doc { margin: 4px 0 12px; }
.ws-card__doc .doc-preview { max-width: none; }
.ws-card__doc .doc-preview__open { align-items: stretch; width: 100%; }
.ws-card__doc .doc-preview__img { width: 100%; max-width: none; height: 220px; max-height: 220px; object-fit: contain; background: var(--jbt-bg-alt); }
.ws-card .ws-facts, .sent-item .ws-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.ws-card .ws-facts > .ws-fact--wide, .sent-item .ws-facts > .ws-fact--wide { grid-column: 1 / -1; }
.ws-doc { min-height: 44px; }
.ws-card .ws-doc { width: 100%; }
.ws-retry { min-height: 44px; }

/* The state is always a word, the colored dot only complements it. Font size 0.85 rem is the upper limit of small
   text in the kit: 0.72 rem (status-badge) is too small for amounts on a phone. */
.ws-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--jbt-ink);
  background: var(--jbt-surface);
  border: 1px solid var(--jbt-border);
  border-radius: 999px;
}
.ws-badge::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--jbt-text-muted); }
.ws-badge--Schvaleno::before, .ws-badge--Zauctovano::before { background: var(--jbt-success); }
.ws-badge--Zamitnuto::before { background: var(--jbt-error); }
.ws-badge--CekaNaSchvaleni { background: var(--jbt-yellow); border-color: var(--jbt-yellow); color: var(--jbt-anthracite); }
.ws-badge--CekaNaSchvaleni::before { background: var(--jbt-anthracite); }

.ws-table { display: none; }
/* From 640 px the cards are in two columns, from a window width of 1366 px a table. The content is narrower by the
   sidebar (264 px), padding (64 px) and the card around the table (padding 2 x 24 px, border 2 x 1 px), so at 1366 px
   the overview table is 1366 - 264 - 64 - 48 - 2 - 2 = 986 px, with the page scrollbar about 970 px (the Odeslané
   table is not in a card and is about 1019 px, see below). At 970 px the amount needs 126 px (13 %), the e-mail 192
   px (22 %) and the state badge 110 px (11.5 %). The sum of the smallest needed column widths of Historie (the widest
   row) is about 950 px, so the table fits without a scrollbar. Below 1366 px it would need a scrollbar or wrapping,
   so cards stay there. */
@media (min-width: 640px) {
  .ws-cards { display: grid; grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1366px) {
  .ws-cards { display: none; }
  .ws-cards-tools { display: none; }
  .sent-list { display: none; }
  .sent-screen { max-width: none; }
  .ws-table {
    display: block;
    margin-bottom: 16px;
    background: var(--jbt-surface);
    border: 1px solid var(--jbt-border);
    border-radius: var(--jbt-radius-md);
    overflow: clip;
  }
}
/* Overview table inside the .ws-table wrapper: light and economical, the header is only grey text, soft dividers, no
   heavy surfaces. Yellow is only the dot of the waiting state, the document link is text, not a button. Fixed layout:
   column widths come from the colgroup in percent (sum 100), each record is one line. Text columns are cut with an
   ellipsis (the whole text is in title); date, amount, state and document are never cut. */
.ws-table .table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 0.85rem; }
.ws-table .table th, .ws-table .table td { padding: 6px 8px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--jbt-border); }
.ws-table .table th { font-size: 0.82rem; font-weight: 600; white-space: nowrap; color: var(--jbt-text-muted); }
.ws-table .table tbody tr:hover { background: var(--jbt-surface-2); }
.ws-table .table tbody tr:last-child td { border-bottom: 0; }
.ws-table .table .table__amount { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.ws-table .table__nowrap { white-space: nowrap; }
.ws-table .table__clip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Column widths without Historie (Ke schválení): date, merchant, amount, type and payment, purpose, approver, state,
   document */
.ws-table .ws-col-date { width: 11%; }
.ws-table .ws-col-shop { width: 11%; }
.ws-table .ws-col-amount { width: 13%; }
.ws-table .ws-col-kind { width: 12%; }
.ws-table .ws-col-purpose { width: 12%; }
.ws-table .ws-col-approver { width: 22%; }
.ws-table .ws-col-state { width: 12%; }
.ws-table .ws-col-doc { width: 7%; }
/* Column widths in Historie: checkbox and detail arrow (narrow, controls only), no type and payment, with the
   decision date and comment. Cut texts (merchant, purpose, comment) have the whole text in title and in the row
   detail. */
.ws-table--history .ws-col-select { width: 2.5%; }
.ws-table--history .ws-col-expand { width: 2.9%; }
.ws-table--history .ws-col-number { width: 4.3%; }
.ws-table--history .ws-col-date { width: 8.7%; }
.ws-table--history .ws-col-shop { width: 10%; }
.ws-table--history .ws-col-amount { width: 13%; }
.ws-table--history .ws-col-purpose { width: 8%; }
.ws-table--history .ws-col-approver { width: 20.5%; }
.ws-table--history .ws-col-state { width: 11.5%; }
.ws-table--history .ws-col-decided { width: 9.7%; }
.ws-table--history .ws-col-comment { width: 2.5%; }
.ws-table--history .ws-col-doc { width: 6.4%; }

/* The Podatel column (e-mail, cut with an ellipsis, whole in title) needs at least 150 px next to Schvalovatel, which
   the table does not have at 1366 px: all other columns are already at their limit (amount, approver, state, date,
   document), Obchodník, Účel and Komentář are only cut texts. So the column is in the table from a window width of
   1536 px (the table is then 1156 px wide); below that it is hidden and the e-mail is in the row detail, on the card
   and in the filter. From 1536 px both tables have their own set of widths (sum 100, different from the one without
   the column); the rules list the class .ws-table--submitter. */
.ws-table .ws-col-submitter, .ws-table .ws-cell-submitter { display: none; }
.ws-table .table__empty { color: var(--jbt-text-muted); }
@media (min-width: 1536px) {
  .ws-table .ws-col-submitter { display: table-column; }
  .ws-table .ws-cell-submitter { display: table-cell; }
  .ws-table--submitter .ws-col-date { width: 10%; }
  .ws-table--submitter .ws-col-shop { width: 10%; }
  .ws-table--submitter .ws-col-amount { width: 11%; }
  .ws-table--submitter .ws-col-kind { width: 9%; }
  .ws-table--submitter .ws-col-purpose { width: 9.6%; }
  .ws-table--submitter .ws-col-approver { width: 17.5%; }
  .ws-table--submitter .ws-col-submitter { width: 17.5%; }
  .ws-table--submitter .ws-col-state { width: 10%; }
  .ws-table--submitter .ws-col-doc { width: 5.4%; }
  .ws-table--pending.ws-table--submitter .ws-col-expand { width: 2.5%; }
  .ws-table--pending.ws-table--submitter .ws-col-date { width: 9%; }
  .ws-table--pending.ws-table--submitter .ws-col-shop { width: 9.5%; }
  .ws-table--pending.ws-table--submitter .ws-col-amount { width: 11%; }
  .ws-table--pending.ws-table--submitter .ws-col-kind { width: 9%; }
  .ws-table--pending.ws-table--submitter .ws-col-purpose { width: 8.6%; }
  .ws-table--pending.ws-table--submitter .ws-col-approver { width: 17.5%; }
  .ws-table--pending.ws-table--submitter .ws-col-submitter { width: 17.5%; }
  .ws-table--pending.ws-table--submitter .ws-col-state { width: 10%; }
  .ws-table--pending.ws-table--submitter .ws-col-doc { width: 5.4%; }
  .ws-table--history.ws-table--submitter .ws-col-select { width: 2.2%; }
  .ws-table--history.ws-table--submitter .ws-col-expand { width: 2.5%; }
  .ws-table--history.ws-table--submitter .ws-col-number { width: 3.8%; }
  .ws-table--history.ws-table--submitter .ws-col-date { width: 8.2%; }
  .ws-table--history.ws-table--submitter .ws-col-shop { width: 7.7%; }
  .ws-table--history.ws-table--submitter .ws-col-amount { width: 10.6%; }
  .ws-table--history.ws-table--submitter .ws-col-purpose { width: 4.2%; }
  .ws-table--history.ws-table--submitter .ws-col-approver { width: 17.5%; }
  .ws-table--history.ws-table--submitter .ws-col-submitter { width: 17.5%; }
  .ws-table--history.ws-table--submitter .ws-col-state { width: 9.8%; }
  .ws-table--history.ws-table--submitter .ws-col-decided { width: 8.3%; }
  .ws-table--history.ws-table--submitter .ws-col-comment { width: 2.3%; }
  .ws-table--history.ws-table--submitter .ws-col-doc { width: 5.4%; }
}

/* From a window width of 1704 px the content is at most 1440 px wide and the table is still 1328 px; the part above
   1156 px goes to Obchodník and Účel (otherwise they would be narrower at 1920 px than before the Podatel column). A
   second set of widths, sum 100 again. */
@media (min-width: 1704px) {
  .ws-table--pending.ws-table--submitter .ws-col-expand { width: 2.3%; }
  .ws-table--pending.ws-table--submitter .ws-col-date { width: 7.8%; }
  .ws-table--pending.ws-table--submitter .ws-col-shop { width: 12%; }
  .ws-table--pending.ws-table--submitter .ws-col-amount { width: 10%; }
  .ws-table--pending.ws-table--submitter .ws-col-kind { width: 10.7%; }
  .ws-table--pending.ws-table--submitter .ws-col-purpose { width: 12.3%; }
  .ws-table--pending.ws-table--submitter .ws-col-approver { width: 15.5%; }
  .ws-table--pending.ws-table--submitter .ws-col-submitter { width: 15.5%; }
  .ws-table--pending.ws-table--submitter .ws-col-state { width: 9%; }
  .ws-table--pending.ws-table--submitter .ws-col-doc { width: 4.9%; }
  .ws-table--history.ws-table--submitter .ws-col-select { width: 2.3%; }
  .ws-table--history.ws-table--submitter .ws-col-expand { width: 2.3%; }
  .ws-table--history.ws-table--submitter .ws-col-number { width: 3.4%; }
  .ws-table--history.ws-table--submitter .ws-col-date { width: 7.8%; }
  .ws-table--history.ws-table--submitter .ws-col-shop { width: 10%; }
  .ws-table--history.ws-table--submitter .ws-col-amount { width: 10%; }
  .ws-table--history.ws-table--submitter .ws-col-purpose { width: 9.2%; }
  .ws-table--history.ws-table--submitter .ws-col-approver { width: 15.5%; }
  .ws-table--history.ws-table--submitter .ws-col-submitter { width: 15.5%; }
  .ws-table--history.ws-table--submitter .ws-col-state { width: 9%; }
  .ws-table--history.ws-table--submitter .ws-col-decided { width: 7.8%; }
  .ws-table--history.ws-table--submitter .ws-col-comment { width: 2.3%; }
  .ws-table--history.ws-table--submitter .ws-col-doc { width: 4.9%; }
}

/* Table of Ke schválení: widths in percent (sum 100), the submitter shows from 1366 px with the rest, the approver is not a column.
   At 1366 px the table is 986 px: the date needs about 96 px, the amount 126 px (1 234 567,50 Kč) and the document button 80 px. */
.ws-table--queue .ws-col-number { width: 5%; }
.ws-table--queue .ws-col-date { width: 10%; }
.ws-table--queue .ws-col-shop { width: 17.5%; }
.ws-table--queue .ws-col-kind { width: 14.5%; }
.ws-table--queue .ws-col-amount { width: 14%; }
.ws-table--queue .ws-col-podatel { width: 17%; }
.ws-table--queue .ws-col-wait { width: 9%; }
.ws-table--queue .ws-col-doc { width: 9%; }
.ws-table--queue .ws-col-expand { width: 4%; }
/* Odeslané účtenky: eight columns (the first is the number Č., the last the detail arrow), sum 100. At 1366 px the table is 986 px: the date needs 96 px, the amount 126 px and
   the pill "Čeká na schválení" about 150 px, so the state has 17 %. The comment is not a column: a mark after the decision day carries it. */
.ws-table--sent .ws-col-number { width: 5%; }
.ws-table--sent .ws-col-date { width: 11%; }
.ws-table--sent .ws-col-shop { width: 23%; }
.ws-table--sent .ws-col-kind { width: 15%; }
.ws-table--sent .ws-col-amount { width: 13%; }
.ws-table--sent .ws-col-state { width: 17%; }
.ws-table--sent .ws-col-decided { width: 12%; }
.ws-table--sent .ws-col-expand { width: 4%; }

/* State in the table: a small one-line badge, waiting is a surface with an outline and a yellow dot, the badge holds
   the waiting time */
.ws-table .ws-badge { padding: 1px 8px; font-size: 0.78rem; white-space: nowrap; }
.ws-table .ws-badge--CekaNaSchvaleni { background: var(--jbt-surface); border-color: var(--jbt-border); color: var(--jbt-ink); }
.ws-table .ws-badge--CekaNaSchvaleni::before { background: var(--jbt-yellow); box-shadow: inset 0 0 0 1px var(--jbt-anthracite); }

/* Document in the table: a blue text link, underlined on hover, click area at least 24 px (WCAG 2.2) */
.ws-table .ws-doclink {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  color: var(--jbt-blue);
}
.ws-table .ws-doclink:hover { text-decoration: underline; }

/* Record selection and row detail in the Historie table: the checkbox and the arrow button have a narrow column; the
   open detail is a second row across all columns with the same facts (.ws-facts) as the card Detail, in two columns */
.ws-table .table th.ws-cell-control, .ws-table .table td.ws-cell-control { padding: 6px 2px; text-align: center; }
/* The head cell of the controls must not clip the focus ring of the checkbox of "Vybrat vše" (the other heads are cut with an ellipsis). */
.ws-table .table th.ws-cell-control { overflow: visible; }
.ws-table .table th.ws-cell-comment { padding: 6px 2px; text-align: center; }
.ws-table .table td.ws-cell-comment { padding: 6px 2px; text-align: center; }
/* The number (2026/0012) breaks only after its slash (NumberCell puts a <wbr> there) when the narrow column does not hold it on one line. */
.ws-table .table td.ws-cell-number { font-variant-numeric: tabular-nums; white-space: normal; color: var(--jbt-text-muted); }
/* The tables of Přehled have no spare width (every column is at its limit, Historie most of all), so the number column Č. takes only what five digits
   need: no padding on its right (the next cell has its own on the left). Historie always, Ke schválení and Odeslané below 1536 px, where they are as tight. */
.ws-table--history .table th.ws-cell-number, .ws-table--history .table td.ws-cell-number { padding-left: 1px; padding-right: 0; }
@media (max-width: 1535px) {
  .ws-table .table th.ws-cell-number, .ws-table .table td.ws-cell-number { padding-left: 1px; padding-right: 0; }
}
.ws-comment-mark { width: 18px; height: 18px; vertical-align: middle; color: var(--jbt-text-muted); }
.ws-pick { width: 18px; height: 18px; margin: 0; vertical-align: middle; accent-color: var(--jbt-ink); cursor: pointer; }
.ws-pick:focus-visible { outline: 3px solid var(--jbt-ink); outline-offset: 2px; box-shadow: 0 0 0 3px var(--jbt-focus-ring); }
.ws-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--jbt-text-muted);
  cursor: pointer;
}
.ws-expand:hover { background: var(--jbt-surface-2); color: var(--jbt-ink); }
.ws-expand:focus-visible { outline: 3px solid var(--jbt-ink); outline-offset: 1px; box-shadow: 0 0 0 3px var(--jbt-focus-ring); }
.ws-expand svg { width: 18px; height: 18px; transition: transform .15s ease; }
.ws-expand[aria-expanded="true"] svg { transform: rotate(180deg); }
/* A click anywhere in a row (or a tap on a card) opens the detail: pointer and a soft hover only for what can be opened.
   The arrow at the end of the row stays the visible hint and the button for the keyboard. */
.ws-table .table tbody tr.ws-row--expandable { cursor: pointer; }
.ws-table .table tbody tr.ws-row--expandable a, .ws-table .table tbody tr.ws-row--expandable input, .ws-table .table tbody tr.ws-row--expandable button { cursor: pointer; }
.ws-card, .sent-item { cursor: pointer; }
.ws-card__more > :not(summary) { cursor: auto; }
@media (hover: hover) {
  .ws-card:hover { box-shadow: var(--jbt-shadow); }
  .sent-item:hover { background: var(--jbt-surface-2); }
}
/* Open row: the line, its detail and the arrow read as one marked group. The yellow signal bar (a small area, no text on it) runs down
   the left edge of the line and of its detail, the line and the detail share one soft background, the main data are bolder and the
   arrow is a dark symbol on a yellow chip. The rule is attribute based (aria-expanded of the arrow), so Ke schválení, Historie and
   Odeslané look the same. Other rows stay as they are. */
.ws-table .table tbody tr { transition: background-color .15s ease; }
.ws-table .table tbody tr:has(.ws-expand[aria-expanded="true"]) { background: var(--jbt-surface-2); }
.ws-table .table tbody tr:has(.ws-expand[aria-expanded="true"]) > :first-child { box-shadow: inset 4px 0 0 var(--jbt-yellow); }
.ws-table .table tbody tr:has(.ws-expand[aria-expanded="true"]) :is(.table__clip, .table__amount) { font-weight: 600; color: var(--jbt-ink); }
.ws-table .table tbody tr:has(.ws-expand[aria-expanded="true"]) td { border-bottom-color: transparent; }
.ws-expand[aria-expanded="true"] { background: var(--jbt-yellow); color: var(--jbt-ink); }
.ws-expand[aria-expanded="true"]:hover { background: var(--jbt-yellow); }
.ws-detail-row { background: var(--jbt-surface-2); }
.ws-detail { background: var(--jbt-surface-2); }
.ws-table .table .ws-detail {
  padding: 4px 24px 20px 24px;
  background: var(--jbt-surface-2);
  border-top: 1px solid var(--jbt-border);
  border-bottom: 1px solid var(--jbt-border-control);
  box-shadow: inset 4px 0 0 var(--jbt-yellow);
  overflow-wrap: break-word;
}
/* Facts: label and value in two columns (the pair of columns twice on a wide screen), the long ones (purpose, comment) over the whole width. */
/* The event log of a receipt (EventLog.js): a small title and a plain list, one line per event, in the Detail of a card and in the detail of a table row. */
.ws-events { margin: 0 0 16px; }
.ws-events__title { margin: 0 0 4px; font-size: 0.82rem; font-weight: 600; color: var(--jbt-text-muted); }
.ws-events__list { margin: 0; padding: 0; list-style: none; }
.ws-events__list li { padding: 6px 0; border-bottom: 1px solid var(--jbt-border); font-size: 0.9rem; overflow-wrap: break-word; }
.ws-events__list li:last-child { border-bottom: 0; }
.ws-events__state { margin: 0; padding: 6px 0; font-size: 0.9rem; color: var(--jbt-text-muted); }
.ws-detail .ws-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; margin: 0 0 16px; }
.ws-detail .ws-facts > div { flex-direction: row; justify-content: flex-start; align-items: baseline; padding: 6px 0; }
.ws-detail .ws-facts dt { flex: 0 0 max(7rem, 38%); }
.ws-detail .ws-facts dd { flex: 1 1 auto; }
.ws-detail .ws-facts > div:nth-last-child(-n+2):nth-child(odd), .ws-detail .ws-facts > div:last-child { border-bottom: 0; }
.ws-detail .ws-facts > .ws-fact--wide { grid-column: 1 / -1; border-bottom: 1px solid var(--jbt-border); }
/* 19% of the whole width less the 8 px that the column gap of 40 px takes from each half: the values of a wide fact line up with the values of the two columns */
.ws-detail .ws-facts > .ws-fact--wide dt { flex-basis: max(7rem, calc(19% - 8px)); }
.ws-detail .ws-facts > .ws-fact--wide:last-child { border-bottom: 0; }
.ws-detail .ws-facts dd { white-space: pre-line; }
/* Detail of a sent receipt: three columns, the label above the value; the comment of the approver is a quote under the facts. */
.ws-detail .ws-facts--three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 28px; }
.ws-detail .ws-facts--three > div { flex-direction: column; align-items: flex-start; gap: 2px; padding: 0; border-bottom: 0; }
.ws-detail .ws-facts--three dt { flex: none; }
.ws-detail .ws-facts--three > .ws-fact--wide { grid-column: 1 / -1; border-bottom: 0; }
.ws-detail .ws-facts--three > .ws-fact--wide dt { flex-basis: auto; }
.ws-quote { margin: 0 0 16px; padding: 12px 16px; font-size: 0.92rem; background: var(--jbt-surface); border-left: 3px solid var(--jbt-border-control); border-radius: 0 var(--jbt-radius-input) var(--jbt-radius-input) 0; overflow-wrap: break-word; }
.ws-quote small { display: block; margin: 0 0 2px; font-size: 0.76rem; font-weight: 600; color: var(--jbt-text-muted); }

/* Detail of a table row (computer): facts, comment and decision on the left, the thumbnail of the document on the right. Without a document the facts take the whole width. */
.ws-detail__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; align-items: start; }
.ws-detail__body--doc { grid-template-columns: minmax(0, 1fr) 220px; }
.ws-detail__main { min-width: 0; }
.ws-detail__doc { min-width: 0; padding-top: 8px; }
/* The detail of Historie, Ke schválení and Odeslané is the same: the document on the right (300 px, up to 360 px high) stays in view while the page scrolls. */
.ws-detail__body--docright { grid-template-columns: minmax(0, 1fr) 300px; gap: 0 28px; }
.ws-detail__body--docright .ws-detail__doc { position: sticky; top: 0; padding-top: 0; }
.ws-detail__body--docright .doc-preview { max-width: 300px; }
.ws-detail__body--docright .doc-preview__img { max-width: 300px; max-height: 360px; }

/* Document in the detail: the thumbnail with the caption Zvětšit, the loading and the error state (reserved space, so the content does not jump) */
.doc-preview { position: relative; width: 100%; max-width: 220px; }
.doc-preview--loading { display: flex; align-items: center; justify-content: center; min-height: 200px; border: 1px dashed var(--jbt-border-control); border-radius: var(--jbt-radius-sm); }
.doc-preview--failed { padding: 12px; border: 1px solid var(--jbt-border-control); border-radius: var(--jbt-radius-sm); background: var(--jbt-surface); }
.doc-preview__message { margin: 0; font-size: 0.85rem; color: var(--jbt-text-muted); }
.doc-preview--failed .doc-preview__message { color: var(--jbt-text); }
.doc-preview__link { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.9rem; font-weight: 600; color: var(--jbt-ink); text-decoration: underline; }
.doc-preview__open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.doc-preview--loading .doc-preview__open { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.doc-preview__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 220px;
  max-height: 300px;
  border: 1px solid var(--jbt-border-control);
  border-radius: var(--jbt-radius-sm);
  background: var(--jbt-surface);
  box-shadow: var(--jbt-shadow-rest);
}
.doc-preview__open:hover .doc-preview__img { box-shadow: var(--jbt-shadow); }
.doc-preview__open:focus-visible { outline: 3px solid var(--jbt-ink); outline-offset: 3px; box-shadow: 0 0 0 3px var(--jbt-focus-ring); border-radius: var(--jbt-radius-sm); }
.doc-preview__hint { font-size: 0.85rem; font-weight: 600; color: var(--jbt-text-muted); }
.doc-preview__open:hover .doc-preview__hint { color: var(--jbt-ink); text-decoration: underline; }
/* The card of a phone has no thumbnail, only the button Doklad (a touch target of 44 px) that opens the same enlargement. */
.doc-preview--button { max-width: none; margin-top: 12px; }
.doc-preview--button.doc-preview--failed { padding: 0; border: 0; background: none; }
.doc-preview--button .doc-preview__message { margin-bottom: 8px; color: var(--jbt-text); }
/* The button of the card spans the facts like the button Doklad of the history card, its label is centered */
.doc-preview__button { min-height: 44px; width: 100%; text-align: center; justify-content: center; }

/* Enlargement of the document: a native <dialog> opened with showModal(), so it sits in the top layer of the browser (no transform or
   z-index of an ancestor can trap or cover it, the page below is inert). The dialog fills the window and is transparent, the scrim is its
   ::backdrop, the panel is the visible box. The document fits the window, a click switches to the real size with scrolling.
   The page below does not scroll (a modal dialog does not lock it by itself). */
html.doc-viewer-open { overflow: hidden; }
.doc-viewer {
  box-sizing: border-box;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 16px;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--jbt-text);
}
/* display only when open: a closed dialog stays hidden by the browser */
.doc-viewer[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: doc-viewer-in .15s ease both;
}
.doc-viewer::backdrop { background: var(--jbt-scrim); }
.doc-viewer[open]::backdrop { animation: doc-viewer-in .15s ease both; }
.doc-viewer__panel {
  display: flex;
  flex-direction: column;
  width: min(100%, 1200px);
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--jbt-border-control);
  border-radius: var(--jbt-radius-md);
  background: var(--jbt-surface);
  color: var(--jbt-text);
  box-shadow: var(--jbt-shadow);
}
.doc-viewer__panel:focus { outline: none; }
.doc-viewer__bar { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--jbt-border); }
.doc-viewer__title { flex: none; max-width: 40%; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.doc-viewer__hint { flex: 1 1 auto; min-width: 0; font-size: 0.85rem; color: var(--jbt-text-muted); }
.doc-viewer__close { flex: none; min-width: 44px; min-height: 44px; margin-left: auto; }
.doc-viewer__stage { display: flex; flex: 1 1 auto; min-height: 0; padding: 16px; overflow: auto; background: var(--jbt-surface-2); }
.doc-viewer__zoom {
  flex: none;
  max-width: 100%;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.doc-viewer__zoom img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 9rem);
  border: 1px solid var(--jbt-border-control);
  background: var(--jbt-surface);
  box-shadow: var(--jbt-shadow);
}
.doc-viewer__zoom:focus-visible { outline: 3px solid var(--jbt-ink); outline-offset: 3px; box-shadow: 0 0 0 3px var(--jbt-focus-ring); }
.doc-viewer--actual .doc-viewer__zoom { max-width: none; cursor: zoom-out; }
.doc-viewer--actual .doc-viewer__zoom img { max-width: none; max-height: none; }
@keyframes doc-viewer-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 639px) {
  .doc-viewer { padding: 8px; }
  .doc-viewer__hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .doc-viewer[open], .doc-viewer[open]::backdrop { animation: none; }
}

/* The question before the download of an accountant (Označit vyexportované účtenky jako zaúčtované?): a native <dialog> opened as modal, a small box in
   the middle of the top layer, its scrim is the ::backdrop like in the enlargement of the document. */
html.booking-open { overflow: hidden; }
.booking {
  box-sizing: border-box;
  width: min(32rem, calc(100% - 32px));
  max-width: none;
  padding: 0;
  border: 1px solid var(--jbt-border-control);
  border-radius: var(--jbt-radius-md);
  background: var(--jbt-surface);
  color: var(--jbt-text);
  box-shadow: var(--jbt-shadow);
}
.booking::backdrop { background: var(--jbt-scrim); }
.booking__panel { padding: 24px; }
.booking__panel:focus { outline: none; }
.booking__title { margin: 0 0 8px; font-size: 1.2rem; }
.booking__actions { margin-top: 16px; }
.booking__actions .btn { min-height: 44px; }

/* Ke schválení with row expansion: a narrow column with the arrow, the other widths share the rest (sum 100) */
.ws-table--pending .ws-col-expand { width: 3%; }
.ws-table--pending .ws-col-date { width: 10%; }
.ws-table--pending .ws-col-shop { width: 11%; }
.ws-table--pending .ws-col-amount { width: 13%; }
.ws-table--pending .ws-col-kind { width: 10%; }
.ws-table--pending .ws-col-purpose { width: 12%; }
.ws-table--pending .ws-col-approver { width: 22%; }
.ws-table--pending .ws-col-state { width: 12%; }
.ws-table--pending .ws-col-doc { width: 7%; }

/* Decision in the receipt detail (table row and card Detail): comment and two equally prominent buttons, no
   hard-coded color */
.ws-decide { margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--jbt-border); }
.ws-decide .field { margin: 0 0 8px; }
.ws-decide textarea { width: 100%; min-height: 4.5rem; background: var(--jbt-surface); }
.ws-decide__count { margin: 4px 0 0; font-size: 0.82rem; color: var(--jbt-text-muted); text-align: right; }
.ws-decide .alert, .ws-decide .status { margin: 0 0 8px; }
.ws-decide__final { margin: 0 0 8px; font-size: 0.82rem; color: var(--jbt-text-muted); }
.ws-decide__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-decide__actions .btn { flex: 1 1 8rem; }
.ws-decide__owner { margin: 12px 0 0; font-size: 0.9rem; color: var(--jbt-text-muted); overflow-wrap: break-word; }
.ws-notice { margin: 0 0 16px; }
@media (min-width: 640px) {
  .ws-decide__actions .btn { flex: 0 0 auto; min-width: 9rem; }
}

/* In the opened card the sentence and the two buttons stand under the comment field in the flow (not stuck to the window, pokyn tvůrce 3. 11. 2026),
   Proplatit is 1.4 times wider than Odmítnout and both are 48 px high. */
.ws-card .ws-decide__bar { padding: 12px 0 0; }
.ws-card .ws-decide__final { margin: 0 0 8px; }
.ws-card .ws-decide__actions { flex-wrap: nowrap; }
/* No side padding: the widths share the free space 1.4 : 1 only when nothing but the border is added to them. */
.ws-card .ws-decide__actions .btn { flex: 1 1 0; min-width: 0; min-height: 48px; padding-inline: 0; }
.ws-card .ws-decide__actions .btn--primary { flex: 1.4 1 0; }

@media (prefers-reduced-motion: reduce) {
  .ws-card { animation: none; }
  .side-link, .theme-toggle, .icon-action, .btn { transition: none; }
  .ws-expand svg, .vat__action svg, .ws-card__more summary::after, .ws-table .table tbody tr { transition: none; }
  .ws-card__more[open] > :not(summary) { animation: none; }
}

/* Odeslané účtenky: actions over a waiting receipt (Opravit a odeslat znovu, Stáhnout) and the notice when
   correcting. Existing tokens only. */
.sent-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 12px 0 0; }
/* Both actions are equally wide and in the middle */
.sent-actions .btn { width: min(100%, 18rem); min-height: 44px; }
.sent-actions__ask, .sent-actions__busy, .sent-actions .alert { flex: 1 1 100%; margin: 0; }
.repair-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.repair-banner p { margin: 0; }
.repair-cancel { min-height: 44px; }

/* Approvers (list management): rows like cards, side by side on a wide screen */
.ap-list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ap-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 16px;
  padding: 14px 16px;
  background: var(--jbt-surface);
  border: 1px solid var(--jbt-border);
  border-radius: var(--jbt-radius-md);
}
.ap-row--off { background: var(--jbt-surface-2); }
.ap-row__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ap-row__name, .ap-row__email { overflow-wrap: break-word; }
.ap-row__email, .ap-row__waiting { font-size: 0.9rem; color: var(--jbt-text-muted); }
.ap-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.ap-state { font-size: 0.85rem; font-weight: 600; color: var(--jbt-text-muted); }
.ap-state--on { color: var(--jbt-success); }
.ap-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-actions .btn, .ap-rename .input { min-height: 44px; }
.ap-rename { display: flex; flex-direction: column; gap: 6px; }
.ap-type { flex-direction: row; align-items: center; gap: 12px; }
.ap-type__rename { flex: 1; min-width: 0; }
.ap-order { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; background: var(--jbt-bg-alt); color: var(--jbt-text-muted); font-size: 0.85rem; font-weight: 600; }
.ap-move { min-width: 44px; padding-left: 0; padding-right: 0; }
.ap-confirm p { margin: 0 0 8px; overflow-wrap: break-word; }
/* The form Přidat schvalovatele is above the list: fields one under another on a phone, one row on a computer (labels above the fields) */
.ap-form { display: flex; flex-direction: column; gap: 12px; margin: 0 0 20px; max-width: 56rem; }
.ap-form__title { margin: 0; font-size: 1.05rem; }
.ap-section-title { margin: 0 0 8px; font-size: 1.2rem; }
.ap-form__row { display: flex; flex-direction: column; gap: 12px; }
.ap-form__submit .btn { width: 100%; }
.ap-form .input, .ap-form__submit .btn { height: 48px; } /* the field and the button are equally tall, so they sit on one axis */
@media (min-width: 900px) {
  .ap-row { grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; }
  .ap-confirm { grid-column: 1 / -1; }
  .ap-form__row { flex-direction: row; align-items: flex-end; }
  .ap-form__row .field { flex: 1 1 0; }
  .ap-form__row .field + .field { flex-grow: 1.4; }
  .ap-form__submit { flex: none; }
  .ap-form__submit .btn { width: auto; }
}

/* Střediska: the table of the cost centres of a company (from 1280 px, narrower it does not fit beside the sidebar), cards with the heading of every field on a phone. Only tokens.
   The picker of the co-owners (details with a checklist) opens as a panel under its summary; the summary looks like the other .input fields. */
.cc-company { max-width: 20rem; margin: 0 0 16px; }
.cc-gap { margin: 0 0 12px; padding: 12px 16px; color: var(--jbt-text); background: var(--jbt-surface); border: 1px solid var(--jbt-border); border-left: 4px solid var(--jbt-warning); border-radius: var(--jbt-radius-sm); overflow-wrap: anywhere; }
.cc-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.cc-table th, .cc-table td { padding: 6px 8px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--jbt-border); }
.cc-table th { font-weight: 600; white-space: nowrap; color: var(--jbt-text-muted); }
.cc-table .input { width: 100%; min-width: 0; }
.cc-row--off { background: var(--jbt-surface-2); }
.cc-new { background: var(--jbt-surface-2); }
.cc-new td { border-bottom: 1px solid var(--jbt-border-control); }
.cc-empty td { padding: 0; }
.cc-actions { min-width: 6rem; }
.cc-noowner { display: inline-block; white-space: nowrap; margin-top: 4px; padding: 1px 8px; font-size: 0.8rem; font-weight: 600; color: var(--jbt-text); background: var(--jbt-surface); border: 1px solid var(--jbt-warning); border-radius: var(--jbt-radius-sm); }
.cc-state { display: block; }
.cc-pick { position: relative; width: 9rem; max-width: 100%; }
.cc-pick__summary { display: flex; align-items: center; min-width: 0; list-style: none; cursor: pointer; }
.cc-pick__summary::-webkit-details-marker { display: none; }
.cc-pick__summary::after { content: ""; flex: none; width: 7px; height: 7px; margin: 0 2px 3px auto; border-right: 2px solid var(--jbt-text-muted); border-bottom: 2px solid var(--jbt-text-muted); transform: rotate(45deg); }
.cc-pick[open] > .cc-pick__summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.cc-pick__text { min-width: 0; padding-right: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-pick__summary:focus-visible { outline: 3px solid var(--jbt-ink); outline-offset: 2px; }
.cc-pick__panel { position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; width: max-content; min-width: 100%; max-width: 20rem; max-height: 16rem; overflow-y: auto; padding: 6px; background: var(--jbt-surface); border: 1px solid var(--jbt-border-control); border-radius: var(--jbt-radius-md); box-shadow: var(--jbt-shadow); }
.cc-pick__item { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 8px; border-radius: var(--jbt-radius-sm); cursor: pointer; overflow-wrap: anywhere; }
.cc-pick__item:hover { background: var(--jbt-surface-2); }
.cc-pick__item input { flex: none; width: 18px; height: 18px; margin: 0; }
.cc-pick__empty { margin: 0; padding: 8px; color: var(--jbt-text-muted); }
/* Table of the cost centres (KH-657): the fields are smaller than elsewhere (13 px, the table is shown only on wide screens) and each has a minimum width
   in characters, so a code and a name are never cut off (the border and padding of the field are 12 px). The table grows by the rest of the width. */
@media (min-width: 1280px) {
  .cc-table th, .cc-table td { padding: 6px 2px; }
  .cc-table .input { min-height: 40px; padding: 6px 5px; font-size: 13px; }
  .cc-table [data-field="cislo"] { min-width: calc(8ch + 12px); }
  .cc-table [data-field="full_code"] { min-width: calc(14ch + 12px); }
  .cc-table [data-field="nazev"] { min-width: calc(15ch + 12px); }
  .cc-table [data-field="name_en"], .cc-table [data-field="name_de"] { min-width: calc(8ch + 12px); }
  .cc-table select.input { min-width: 9rem; }
  .cc-pick { width: 100%; min-width: 4.5rem; }
  .cc-actions { min-width: 0; }
  .cc-table th { padding-right: 4px; font-size: 0.78rem; }
  .cc-table .btn--small { padding: 8px 6px; }
  .cc-noowner { padding: 1px 4px; white-space: normal; }
  .cc-pick__text { flex: 1 1 0; width: 0; }
}
@media (max-width: 1279px) {
  .cc-table, .cc-table tbody, .cc-table tr, .cc-table td { display: block; }
  .cc-table thead { display: none; }
  .cc-table tr { margin: 0 0 12px; padding: 8px 12px; background: var(--jbt-surface); border: 1px solid var(--jbt-border); border-radius: var(--jbt-radius-md); }
  .cc-table tr.cc-new, .cc-table tr.cc-row--off { background: var(--jbt-surface-2); }
  .cc-table tr.cc-empty { padding: 0; }
  .cc-table td, .cc-new td { border-bottom: 0; padding: 4px 0; }
  .cc-table td::before { content: attr(data-label); display: block; font-size: 0.8rem; color: var(--jbt-text-muted); }
  .cc-table .cc-empty td::before { content: none; }
  .cc-pick { width: 100%; }
  .cc-pick__panel { max-width: none; }
}

/* Protokol událostí: cards on a phone, a table from 1024 px (the content is narrower by the sidebar, so the five columns fit without a scrollbar). Only tokens, no own colours. */
.protocol__cards { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.protocol__card { min-width: 0; padding: 12px 16px; background: var(--jbt-surface-2); border: 1px solid var(--jbt-border); border-radius: var(--jbt-radius-md); }
.protocol__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.protocol__top time { flex: none; font-size: 0.85rem; color: var(--jbt-text-muted); white-space: nowrap; }
.protocol__line { margin: 4px 0 0; font-size: 0.9rem; color: var(--jbt-text-muted); overflow-wrap: anywhere; }
.protocol__table { display: none; }
.protocol__foot { margin: 0; text-align: center; }
.protocol__more { min-height: 44px; }
@media (min-width: 640px) {
  .protocol__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .protocol__cards { display: none; }
  .protocol__table { display: block; margin-bottom: 16px; background: var(--jbt-surface); border: 1px solid var(--jbt-border); border-radius: var(--jbt-radius-md); overflow: clip; }
  .protocol__table .table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
  .protocol__table th, .protocol__table td { padding: 8px 10px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--jbt-border); overflow-wrap: anywhere; }
  .protocol__table th { font-size: 0.82rem; font-weight: 600; white-space: nowrap; color: var(--jbt-text-muted); }
  .protocol__table tbody tr:hover { background: var(--jbt-surface-2); }
  .protocol__table tbody tr:last-child td { border-bottom: 0; }
  .protocol__time, .protocol__number { white-space: nowrap; font-variant-numeric: tabular-nums; }
}

/* Správa uživatelů: one white card, the search and the button, the bar Co chybí, a table of the people from 1024 px (cards on a phone) and the editor of an open row. Only tokens --jbt-*, no colour
   of a role: the role is a word. */
.users__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 16px; }
.users__search { flex: 1 1 14rem; max-width: 24rem; }
.users__search.list-search { margin-left: 0; max-width: 24rem; }
.users__search.list-search .input { min-height: 44px; }
/* The chips of the roles and of the companies above the list (the pattern of Odeslané účtenky and of the JBT Platform list of users), the count of the shown people under them. */
.users__tools { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; }
.users__count { margin: 0 0 12px; font-size: 0.86rem; color: var(--jbt-text-muted); }
.users__toolbar .btn { min-height: 44px; }
.users__gaps, .users__warnings, .users__warning { padding: 12px 16px; color: var(--jbt-text); background: var(--jbt-surface); border: 1px solid var(--jbt-border); border-left: 4px solid var(--jbt-warning); font-weight: 400; }
.users__gaps-title { margin: 0 0 4px; font-weight: 600; }
.users__gaps ul { margin: 0; padding-left: 20px; font-weight: 400; }
.users__waiting { margin: 0 0 16px; }
.users__notice, .users__warning { margin: 0 0 12px; }
.users__table { margin: 0 0 8px; }
.users__table thead { display: none; }
.users__item { display: block; margin: 0 0 12px; background: var(--jbt-surface); border: 1px solid var(--jbt-border); border-radius: var(--jbt-radius-md); overflow: clip; }
.users__item--open { background: var(--jbt-surface-2); border-color: var(--jbt-border-control); }
.users__table table, .users__row, .users__row > td, .users__editor-row, .users__editor-row > td { display: block; }
.users__row { cursor: pointer; padding: 4px 16px 12px; }
.users__row > td { min-width: 0; padding: 2px 0; font-size: 0.9rem; overflow-wrap: anywhere; }
.users__row > td[data-label]::before { content: attr(data-label); display: block; font-size: 0.8rem; color: var(--jbt-text-muted); }
.users__toggle { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0; font: inherit; font-weight: 600; text-align: left; color: var(--jbt-text); background: none; border: 0; border-radius: var(--jbt-radius-sm); cursor: pointer; }
.users__toggle:focus-visible { outline: 3px solid var(--jbt-ink); outline-offset: 2px; }
.users__name { min-width: 0; overflow-wrap: anywhere; }
.users__arrow { flex: none; width: 8px; height: 8px; margin: 0 4px 3px; border-right: 2px solid var(--jbt-text-muted); border-bottom: 2px solid var(--jbt-text-muted); transform: rotate(-45deg); transition: transform .15s ease; }
.users__toggle[aria-expanded="true"] .users__arrow { transform: rotate(45deg); border-color: var(--jbt-ink); }
.users__email { display: block; min-width: 0; margin-top: -8px; padding: 0 0 4px 26px; font-size: 0.82rem; font-weight: 400; color: var(--jbt-text-muted); overflow-wrap: anywhere; }
.users__time { font-variant-numeric: tabular-nums; }
.users__access { list-style: none; margin: 0; padding: 0; }
.users__access li + li { margin-top: 2px; }
.users__editor-row > td { padding: 0 16px 16px; }
.users__editor, .users__add { display: flex; flex-direction: column; gap: 16px; max-width: 56rem; }
.users__add { margin: 0 0 16px; padding: 16px; background: var(--jbt-surface); border: 1px solid var(--jbt-border-control); border-radius: var(--jbt-radius-md); }
.users__editor .field { max-width: 28rem; }
.users__admin-hint, .users__super-hint, .users__no-centers { margin: 0; overflow-wrap: anywhere; }
.users__firm { min-width: 0; margin: 0; padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 12px; background: var(--jbt-surface); border: 1px solid var(--jbt-border); border-radius: var(--jbt-radius-md); }
.users__firm-name { padding: 0 6px; font-size: 1.05rem; font-weight: 600; overflow-wrap: anywhere; }
.users__centers { display: block; width: 100%; font-size: 0.9rem; }
.users__centers thead { display: none; }
.users__centers tbody, .users__centers tr { display: block; }
.users__centers tr { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--jbt-border); }
.users__centers td { min-width: 0; padding: 0; overflow-wrap: anywhere; }
.users__center-code { font-weight: 600; font-variant-numeric: tabular-nums; }
.users__center-posture, .users__center-note { grid-column: 1 / -1; }
.users__center-posture { margin-top: 6px; }
.users__center-note { margin-top: 4px; color: var(--jbt-text-muted); }
.users__center-note:empty { display: none; }
.users__warnings { margin: 0; }
.users__warnings ul { margin: 0; padding-left: 20px; }
.users__editor .alert { margin: 0; }
.users__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.users__actions .btn { min-height: 44px; }
@media (min-width: 1024px) {
  .users__table { background: var(--jbt-surface); border: 1px solid var(--jbt-border); border-radius: var(--jbt-radius-md); overflow: clip; }
  .users__table table { display: table; width: 100%; border-collapse: collapse; font-size: 0.85rem; }
  .users__table thead { display: table-header-group; }
  .users__item { display: table-row-group; margin: 0; background: none; border: 0; border-radius: 0; overflow: visible; }
  .users__item--open { background: var(--jbt-surface-2); }
  .users__row { display: table-row; padding: 0; }
  .users__row > td, .users__editor-row > td { display: table-cell; }
  .users__table th, .users__row > td { padding: 8px 10px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--jbt-border); overflow-wrap: anywhere; }
  .users__table th { font-size: 0.82rem; font-weight: 600; white-space: nowrap; color: var(--jbt-text-muted); }
  .users__row > td[data-label]::before { display: none; }
  .users__row:hover { background: var(--jbt-surface-2); }
  .users__item--open .users__row > td { border-bottom-color: transparent; }
  .users__editor-row { display: table-row; }
  .users__editor-row > td { padding: 8px 10px 20px; border-bottom: 1px solid var(--jbt-border); }
  .users__item:last-child > :last-child > td { border-bottom: 0; }
  .users__time { white-space: nowrap; }
  .users__toggle { min-height: 32px; }
  .users__centers { display: table; }
  .users__centers thead { display: table-header-group; }
  .users__centers tbody { display: table-row-group; }
  .users__centers tr { display: table-row; padding: 0; border: 0; }
  .users__centers th, .users__centers td { display: table-cell; padding: 8px 10px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--jbt-border); }
  .users__centers th { font-size: 0.82rem; font-weight: 600; white-space: nowrap; color: var(--jbt-text-muted); }
  .users__centers tr:last-child td { border-bottom: 0; }
  .users__center-posture { margin: 0; width: 14rem; }
  .users__center-note { margin: 0; }
  .users__center-note:empty { display: table-cell; }
}
