/* =====================================================
   boarding.intranet — Steel design system
   Akcent: #007BB8 Star Command Blue
   ===================================================== */

/* Google Fonts — Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* --- Tokeny --- */
:root {
  --brand:        #007BB8;
  --brand-dark:   #00669a;
  --brand-light:  #e8f4fb;
  --brand-ring:   rgba(0,123,184,.18);

  --bg:           #f8f9fa;
  --surface:      #ffffff;
  --border:       #dee2e6;
  --border-focus: #007BB8;

  --text-base:    #212529;
  --text-muted:   #6c757d;
  --text-subtle:  #adb5bd;

  --success:      #2f9e44;
  --success-bg:   #ebfbee;
  --error:        #c92a2a;
  --error-bg:     #fff5f5;
  --info:         #007BB8;
  --info-bg:      #e8f4fb;

  --radius-sm:    0px;
  --radius:       0px;
  --radius-lg:    0px;

  --shadow-sm:    0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow:       0 2px 8px rgba(0,0,0,.09), 0 1px 3px rgba(0,0,0,.05);
  --shadow-lg:    0 8px 24px rgba(0,0,0,.10), 0 3px 8px rgba(0,0,0,.06);
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-base);
  background: var(--bg);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* --- Typografie --- */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-base);
  margin: 0 0 .5rem;
}
h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.0625rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}
a:hover { color: var(--brand-dark); text-decoration: underline; }

/* --- Karta --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2.25rem 2.5rem;
}

@media (max-width: 480px) {
  .card { padding: 1.75rem 1.5rem; }
}

/* --- Formulář --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: .375rem;
  margin-bottom: 1.125rem;
}

label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-base);
}

input[type="email"],
input[type="text"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: .625rem .875rem;
  font-family: inherit;
  font-size: .9375rem;
  color: var(--text-base);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--brand-ring);
}

input::placeholder { color: var(--text-subtle); }

/* OTP input — větší, čitelnější */
input.otp-input {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: .5rem;
  text-align: center;
  padding: .75rem 1rem;
}

/* --- Tlačítka --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .6875rem 1.25rem;
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .12s, box-shadow .12s;
  text-decoration: none;
  vertical-align: middle;
  box-sizing: border-box;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  width: 100%;
}
.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  font-size: .875rem;
  padding: .375rem .5rem;
}
.btn-ghost:hover { color: var(--text-base); text-decoration: none; }

/* --- Alerty / flash messages --- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  border-left: 3px solid;
}

.alert-error   { background: var(--error-bg);   color: var(--error);   border-color: var(--error);   border: 1px solid #f5c2c7; border-left: 3px solid var(--error); }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid #b2f2bb; border-left: 3px solid var(--success); }
.alert-info    { background: var(--info-bg);    color: var(--info);    border: 1px solid #90cae4; border-left: 3px solid var(--info); }

/* Nette form errors */
.error {
  font-size: .8125rem;
  color: var(--error);
  font-weight: 500;
  margin-top: .25rem;
}

input.error-input,
input:invalid:not(:placeholder-shown) {
  border-color: var(--error);
}

/* --- Stránka přihlášení — centrovaná karta --- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-icon {
  width: 52px;
  height: 52px;
  background: var(--brand-light);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: var(--brand);
}

.auth-header h1 { font-size: 1.375rem; }
.auth-header p  { color: var(--text-muted); font-size: .9375rem; margin-top: .375rem; }

.divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}

/* --- Progress bar wizardu --- */
.wizard-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
}

.wizard-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.wizard-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.wizard-step.done:not(:last-child)::after,
.wizard-step.active:not(:last-child)::after {
  background: var(--brand);
}

.wizard-dot {
  width: 28px;
  height: 28px;
  border-radius: 0;
  background: var(--surface);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  transition: all .2s;
}

.wizard-step.done .wizard-dot {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.wizard-step.active .wizard-dot {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 4px var(--brand-ring);
}

.wizard-label {
  font-size: .6875rem;
  font-weight: 600;
  color: var(--text-subtle);
  margin-top: .375rem;
  text-align: center;
  line-height: 1.2;
}

.wizard-step.active .wizard-label,
.wizard-step.done .wizard-label {
  color: var(--brand-dark);
}

/* --- Wizard layout --- */
.wizard-page {
  min-height: 100vh;
  padding: 2rem 1.5rem;
  max-width: 680px;
  margin: 0 auto;
}

.wizard-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem 2.5rem 2.5rem;
}

@media (max-width: 600px) {
  .wizard-card { padding: 1.5rem 1.25rem; }
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* --- Sekce formuláře --- */
.field-section {
  margin-bottom: 1.75rem;
}

.field-section-title {
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-subtle);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
}

/* --- Prefilled badge (Abra) --- */
.prefilled-field {
  position: relative;
}

.prefilled-badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-light);
  border: 1px solid rgba(0,123,184,.2);
  border-radius: 0;
  padding: .125rem .5rem;
  margin-left: .5rem;
}

/* --- Checkbox / radio --- */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"],
.checkbox-group input[type="radio"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 0;
  accent-color: var(--brand);
  cursor: pointer;
}

/* --- Shrnutí (krok 6) --- */
.summary-section {
  margin-bottom: 1.5rem;
}

.summary-title {
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-subtle);
  margin-bottom: .75rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem 1.5rem;
}

.summary-item label {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.summary-item span {
  display: block;
  font-weight: 600;
  color: var(--text-base);
}

/* --- Site header (zaměstnanecká část) --- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.site-header__logo-left {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  text-decoration: none;
  padding: .375rem;
  transition: color .15s;
}

.site-header__logo-left:hover {
  color: var(--brand);
  text-decoration: none;
}

.site-header__logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-header__logo:hover {
  opacity: .8;
  text-decoration: none;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.site-header__logout {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: .375rem .75rem;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all .15s;
}

.site-header__logout:hover {
  color: var(--error);
  background: var(--error-bg);
  border-color: rgba(201,42,42,.15);
  text-decoration: none;
}

@media (max-width: 480px) {
  .site-header__logout span { display: none; }
  .site-header__inner { padding: 0 1rem; }
}

.wizard-page { min-height: calc(100vh - 56px); }

/* --- Home stránka --- */
.home-page {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.home-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 3rem 3.5rem;
  max-width: 560px;
  width: 100%;
  text-align: center;
}

@media (max-width: 600px) {
  .home-card { padding: 2rem 1.5rem; }
}

.home-icon {
  width: 72px;
  height: 72px;
  background: var(--brand-light);
  border: 1.5px solid rgba(0,123,184,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  margin: 0 auto 1.5rem;
}

.home-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.home-text {
  color: var(--text-muted);
  font-size: .9375rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
  text-align: left;
}

.home-checklist {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 2rem;
  text-align: left;
}

.home-check-item {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  font-size: .9rem;
  color: var(--text-base);
  line-height: 1.4;
}

.home-check-item svg {
  flex-shrink: 0;
  margin-top: .1rem;
}

.home-progress {
  margin-bottom: 2rem;
  text-align: left;
}

.home-progress-bar {
  display: flex;
  gap: .375rem;
  margin-bottom: .875rem;
  flex-wrap: wrap;
}

.home-progress-step {
  width: 36px;
  height: 36px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 600;
  border: 2px solid var(--border);
  color: var(--text-muted);
  background: var(--bg);
  flex-shrink: 0;
}

.home-progress-step.done {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.home-progress-step.active {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-light);
}

.home-progress-label {
  font-size: .875rem;
  color: var(--text-muted);
  margin: 0;
}

.btn-lg {
  padding: .875rem 2rem;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .375rem;
}

/* =====================================================
   Admin rozhraní — Steel
   ===================================================== */

.admin-body { background: #f0f2f4; }

/* Header — tmavý s brand border-bottom */
.admin-header {
  background: #1a1d23;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--brand);
}

.admin-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.admin-header__logo {
  display: flex;
  align-items: center;
  gap: .625rem;
  color: #fff;
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 600;
  flex-shrink: 0;
  letter-spacing: -.01em;
}
.admin-header__logo:hover { color: rgba(255,255,255,.85); text-decoration: none; }
.admin-header__logo strong { color: var(--brand); font-weight: 700; }

.admin-header__nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

.admin-nav-link {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-size: .8125rem;
  font-weight: 500;
  padding: 0 .875rem;
  height: 52px;
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: color .12s;
}
.admin-nav-link:hover { color: rgba(255,255,255,.85); text-decoration: none; }
.admin-nav-link.active { color: #fff; border-bottom-color: var(--brand); }

.admin-header__user {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-left: auto;
}

.admin-header__name {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}

.admin-header__logout {
  color: rgba(255,255,255,.45);
  display: flex;
  align-items: center;
  transition: color .12s;
}
.admin-header__logout:hover { color: rgba(255,255,255,.9); }

/* Layout */
.admin-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.admin-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.admin-page-header h1 {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 700;
  letter-spacing: -.02em;
}

/* Karty */
.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.admin-card-title {
  font-size: .6875rem;
  font-weight: 700;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: .09em;
  padding: .75rem 1.5rem;
  margin: 0;
  border-bottom: 1px solid var(--border);
  background: #f8f9fa;
}

/* Statistiky */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 2rem;
  text-align: center;
}

.admin-stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
  margin-bottom: .375rem;
}

.admin-stat-card--success .admin-stat-value { color: var(--success); }
.admin-stat-card--muted   .admin-stat-value { color: var(--text-muted); }
.admin-stat-card--abra    .admin-stat-value { font-size: 1.75rem; color: #1a6b3c; }

.admin-stat-label {
  font-size: .875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.admin-stat-sub {
  margin-top: .75rem;
  font-size: .75rem;
  color: var(--text-muted);
}

.admin-stat-bar {
  height: 4px;
  background: var(--border);
  margin-bottom: .375rem;
  overflow: hidden;
}
.admin-stat-bar__fill {
  height: 100%;
  background: #1a6b3c;
  transition: width .3s ease;
}

/* Rychlé akce */
.admin-section { margin-bottom: 1.5rem; }
.admin-section-header { margin-bottom: 1rem; }
.admin-section-header h2 { font-size: 1rem; margin: 0; }

.admin-quick-actions {
  display: flex;
  gap: 1rem;
}

.admin-action-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem 1.5rem;
  color: var(--text-base);
  text-decoration: none;
  font-weight: 500;
  font-size: .9375rem;
  transition: all .12s;
  box-shadow: var(--shadow-sm);
}
.admin-action-card:hover {
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
}
.admin-action-card svg { color: var(--brand); }

/* Tabulka */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.admin-table th {
  text-align: left;
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: #f8f9fa;
}

.admin-table td {
  padding: .875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #f8f9fa; }

.admin-table__id { color: var(--text-subtle); font-size: .8125rem; }

/* Stav */
.admin-status {
  display: inline-flex;
  align-items: center;
  font-size: .6875rem;
  font-weight: 700;
  padding: .175rem .5rem;
  letter-spacing: .03em;
}

.admin-status--success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid #b2f2bb;
}

.admin-status--draft {
  background: #f1f3f5;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.admin-table__row--exported {
  opacity: .45;
}

/* Badge */
.admin-badge {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #f1f3f5;
  padding: .25rem .75rem;
  border: 1px solid var(--border);
  align-self: center;
}

/* Detail grid */
.admin-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .875rem 2rem;
  padding: 1.25rem 1.5rem;
}

.admin-detail-item label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-subtle);
  margin-bottom: .2rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.admin-detail-item span {
  font-size: .9375rem;
  color: var(--text-base);
  font-weight: 500;
}

.admin-detail-item--full { grid-column: 1 / -1; }

/* Admin edit formulář — grid */
.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .875rem 2rem;
  padding: 1.25rem 1.5rem;
}

.admin-form-item {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.admin-form-item label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-subtle);
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.admin-form-item--full { grid-column: 1 / -1; }

.admin-checkbox-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9375rem;
  font-weight: 500;
  cursor: pointer;
}

.admin-checkbox-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--brand);
}

/* Tlačítka admin */
.btn-sm { font-size: .8rem; padding: .3125rem .75rem; }

.btn-warning {
  background: #495057;
  color: #fff;
  border: none;
}
.btn-warning:hover { background: #343a40; color: #fff; text-decoration: none; }

.btn-danger {
  background: var(--error);
  color: #fff;
  border: none;
}
.btn-danger:hover { background: #a61c1c; color: #fff; text-decoration: none; }

.btn-abra {
  background: #1a6b3c;
  color: #fff;
  border: none;
}
.btn-abra:hover { background: #145530; color: #fff; text-decoration: none; }

/* Klikatelný řádek tabulky */
.admin-table__row--clickable {
  cursor: pointer;
}
.admin-table__row--clickable:hover td {
  background: var(--brand-light);
}

/* Admin primární tlačítko (bez width:100%) */
.admin-card .btn-primary,
.admin-page .btn-primary {
  width: auto;
}

/* Pomocné */
.d-flex { display: flex; }
.gap-2 { gap: .5rem; }
.align-items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.text-muted { color: var(--text-muted); }

/* Spinner animace */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin .8s linear infinite; transform-origin: center; transform-box: fill-box; }

/* ── Abra diff — vizuální zvýraznění změn ── */
.admin-detail-item--changed,
.admin-detail-item--new,
.admin-detail-item--abra-only {
  padding-left: .75rem;
}

.admin-detail-item--changed {
  background: #fff8e1;
  border-left: 3px solid #f0a500;
}
.admin-detail-item--changed label {
  color: #7a5500;
}

.admin-detail-item--new {
  background: var(--brand-light);
  border-left: 3px solid var(--brand);
}
.admin-detail-item--new label {
  color: #004f78;
}

.admin-detail-item--abra-only {
  background: #fdf0f0;
  border-left: 3px solid #c0392b;
  opacity: .75;
}
.admin-detail-item--abra-only label {
  color: #7a1c1c;
}

/* Legenda diff */
.diff-legend {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: .8125rem;
}
.diff-legend__item {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .25rem .625rem;
  border-left: 3px solid transparent;
}
.diff-legend__item--changed  { background: #fff8e1; border-color: #f0a500; color: #7a5500; }
.diff-legend__item--new      { background: var(--brand-light); border-color: var(--brand); color: #004f78; }
.diff-legend__item--abra-only { background: #fdf0f0; border-color: #c0392b; color: #7a1c1c; }

/* ── Dry-run export ── */
.dry-run-badge {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: #fff3cd;
  color: #7a5500;
  border: 1px solid #f0a500;
  padding: .1rem .5rem;
  vertical-align: middle;
  margin-left: .5rem;
}

.dry-run-error {
  background: #fdf0f0;
  border-left: 4px solid var(--error);
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  color: #7a1c1c;
}

.dry-run-summary {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text-muted);
}
.dry-run-summary__todo {
  color: #7a5500;
}

.dry-run-call__header {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.dry-run-method {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .2rem .5rem;
  font-family: monospace;
}
.dry-run-method--patc { background: #e8f4fb; color: #004f78; border: 1px solid var(--brand); }
.dry-run-method--post { background: #edfaf0; color: #1a5c32; border: 1px solid #2d8a50; }

.dry-run-endpoint {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  padding: .2rem .5rem;
  border: 1px solid var(--border);
}

.dry-run-call__label {
  font-size: .875rem;
  color: var(--text-muted);
  font-weight: 400;
}

.dry-run-note {
  padding: .5rem 1.5rem .75rem;
  font-size: .8125rem;
  color: #7a5500;
  background: #fff8e1;
  border-top: 1px solid #f0e5b0;
}

.dry-run-payload {
  padding: 0 1.5rem 1.25rem;
}

.dry-run-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.dry-run-table th {
  text-align: left;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  padding: .5rem .75rem;
  border-bottom: 1px solid var(--border);
}
.dry-run-table td {
  padding: .4rem .75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.dry-run-table tr:last-child td { border-bottom: none; }
.dry-run-table__field { width: 30%; white-space: nowrap; }
.dry-run-table__value { font-weight: 500; }
.dry-run-table--nested { margin: 0; background: rgba(0,0,0,.03); border-radius: 3px; }

.dry-run-bool--true  { color: #1a6b3c; font-weight: 600; }
.dry-run-bool--false { color: var(--error); font-weight: 600; }

/* Tlačítko Provést v dry-run kartě */
.dry-run-execute-btn {
  margin-left: auto;
  flex-shrink: 0;
}

/* ── API status badge (log) ── */
.api-status {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  padding: .125rem .45rem;
  border-radius: 3px;
  letter-spacing: .02em;
}
.api-status--ok      { background: #d3f9d8; color: #1a6b3c; }
.api-status--error   { background: #ffe3e3; color: #c92a2a; }
.api-status--pending { background: #f1f3f5; color: #868e96; }

/* ── Mapování polí → Abra ── */
.mapping-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  padding: .1rem .4rem;
  border-radius: 3px;
  white-space: nowrap;
  letter-spacing: .02em;
}
.mapping-badge--direct    { background: #d3f9d8; color: #1a6b3c; }
.mapping-badge--transform { background: #fff3bf; color: #856404; }
.mapping-badge--todo      { background: #ffe3e3; color: #c92a2a; }
.mapping-badge--readonly  { background: #f1f3f5; color: #868e96; }

.mapping-table td { vertical-align: top; font-size: .8125rem; }
.mapping-table td:nth-child(6) { color: var(--text-muted); font-size: .775rem; }

/* ── API log detail (expandovatelný) ── */
.api-log-detail summary.api-log-detail__toggle {
  cursor: pointer;
  font-size: .8125rem;
  color: var(--brand);
  user-select: none;
  padding: .125rem 0;
}
.api-log-detail summary.api-log-detail__toggle:hover { text-decoration: underline; }
.api-log-detail__body {
  margin-top: .5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.api-log-section strong {
  display: block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  margin-bottom: .25rem;
}
.api-log-pre {
  margin: 0;
  padding: .5rem .75rem;
  background: #f8f9fa;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: .75rem;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 200px;
  overflow-y: auto;
}

/* ── Admin pagination ── */
.admin-pagination {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  padding: 1rem 0 .5rem;
}

/* ── Admin link ── */
.admin-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}
.admin-link:hover { text-decoration: underline; }
