:root {
  --bg-1: #090e1c;
  --bg-2: #0e1530;
  --bg-highlight-1: #1a2d5a;
  --bg-highlight-2: rgba(255, 255, 255, 0.08);
  --surface-1: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.04);
  --surface-glass: rgba(16, 24, 48, 0.76);
  --border-1: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(124, 92, 255, 0.6);
  --text-primary: #e6e8ef;
  --text-muted: #9fa6bb;
  --text-faint: rgba(255, 255, 255, 0.54);
  --accent: #7c5cff;
  --accent-soft: rgba(124, 92, 255, 0.18);
  --accent-strong: #5a48e0;
  --positive: #37d67a;
  --warning: #f3c316;
  --negative: #ff5c7a;
  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.42);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --transition-fast: 0.18s ease;
  --transition-medium: 0.28s ease;
  --page-max-width: 1220px;
  --page-gutter: 18px;
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 80px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--text-primary);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Roboto", "Helvetica Neue", Arial, sans-serif;
  padding-left: var(--sidebar-collapsed-width);
  transition: padding-left var(--transition-medium);
  background:
    radial-gradient(1200px 1200px at 8% -12%, rgba(33, 52, 105, 0.9) 0%, transparent 60%),
    radial-gradient(1200px 1200px at 108% 4%, rgba(26, 46, 96, 0.9) 0%, transparent 60%),
    linear-gradient(165deg, var(--bg-1), var(--bg-2));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::backdrop {
  background-color: var(--bg-2);
}

main,
section {
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: 100%;
  max-width: var(--page-max-width);
  margin: 28px auto 80px auto;
  padding: 0 var(--page-gutter);
}

.wrap--narrow {
  max-width: 980px;
}

.wrap--wide {
  max-width: 1420px;
}

/*
  Pełna szerokość treści dla wybranych stron panelu.
  Te strony mają wykorzystywać całą szerokość ekranu zamiast być wyśrodkowane
  z pustymi pasami po bokach. Selektor body[data-page="…"] ma wyższą swoistość
  niż lokalne reguły .wrap na tych stronach, więc nadpisuje ich indywidualne
  max-width. Aby dodać kolejną stronę, dopisz jej data-page do listy poniżej.
*/
body[data-page="ranking-admin"] .wrap,
body[data-page="vacations-admin"] .wrap,
body[data-page="documents-admin"] .wrap,
body[data-page="retail-shelf"] .wrap,
body[data-page="equipment-management"] .wrap,
body[data-page="announcements-admin"] .wrap,
body[data-page="marketing"] .wrap,
body[data-page="reviews-verification"] .wrap,
body[data-page="ig-stories-bonus"] .wrap,
body[data-page="my-account"] .wrap,
body[data-page="razorflow-solutions"] .wrap {
  max-width: none;
  padding-left: clamp(1.5rem, 3vw, 3.5rem);
  padding-right: clamp(1.5rem, 3vw, 3.5rem);
}

.card {
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
}

.card--glass {
  background: var(--surface-glass);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.card__inner {
  padding: 18px 20px;
}

.admin-header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.admin-header-text {
  flex: 1;
  min-width: 0;
}

.admin-header-graphic {
  flex: 0 0 90px;
  height: 90px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.admin-header-graphic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (min-width: 768px) {
  .admin-header-graphic {
    flex: 0 0 130px;
    height: 130px;
    border-radius: 18px;
  }
}

.muted {
  color: var(--text-muted);
}

small.muted {
  font-size: 12px;
}

strong,
b {
  font-weight: 600;
}

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

input,
select,
textarea,
button {
  font: inherit;
  color: inherit;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

select {
  color-scheme: dark;
}

select option {
  background-color: #111827;
  color: #f9fafb;
}

select option:checked,
select option:hover,
select option:focus {
  background-color: #2563eb;
  color: #ffffff;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(124, 92, 255, 0.6);
  background: rgba(124, 92, 255, 0.08);
  outline: none;
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.25);
}

button {
  cursor: pointer;
  border: 1px solid transparent;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-weight: 600;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(124, 92, 255, 0.28);
}

.btn:active {
  transform: translateY(0);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-1);
  color: var(--text-primary);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.btn--danger {
  background: linear-gradient(180deg, #ff6b88, #ff4167);
}

.btn--success {
  background: linear-gradient(180deg, #3bd19b, #269a6f);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-1);
  font-size: 12px;
  font-weight: 500;
}

.tag--success {
  background: rgba(55, 214, 122, 0.12);
  border-color: rgba(55, 214, 122, 0.32);
  color: #b5f5d2;
}

.tag--danger {
  background: rgba(255, 92, 122, 0.14);
  border-color: rgba(255, 92, 122, 0.38);
  color: #ffd5dd;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--auto-fit {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (max-width: 1080px) {

  .grid--two,
  .grid--three {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

.table-modern {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 14px;
}

.table-modern thead th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  text-align: left;
  padding: 6px 12px;
}

.table-modern tbody tr {
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  backdrop-filter: blur(6px);
}

.table-modern tbody td {
  padding: 14px 16px;
  font-size: 14px;
}

.rf-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding-bottom: 4px;
}

.rf-table-scroll>table {
  min-width: 100%;
  width: max-content;
}

.rf-table-scroll>table th,
.rf-table-scroll>table td {
  white-space: nowrap;
}

/* Wskaźnik "ta tabela przewija się w bok" — klasę .rf-has-overflow nadaje
   layout.js, gdy scrollWidth > clientWidth. Gradient znika po doscrollowaniu
   do prawej krawędzi (.rf-at-end). */
.rf-table-scroll.rf-has-overflow {
  position: relative;
}

.rf-table-scroll.rf-has-overflow::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 34px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(9, 14, 28, 0), rgba(9, 14, 28, 0.85));
  opacity: 1;
  transition: opacity .2s ease;
}

.rf-table-scroll.rf-has-overflow.rf-at-end::after {
  opacity: 0;
}

.rf-scroll-hint {
  display: none;
  font-size: 11px;
  color: var(--text-faint);
  text-align: right;
  padding: 2px 4px 6px;
  letter-spacing: .04em;
}

.rf-has-overflow+.rf-scroll-hint,
.rf-scroll-hint.rf-visible {
  display: block;
}

/* === Tabela → karty na telefonie ===
   Opt-in: <table class="rf-table-cards"> (może współistnieć z .table-modern).
   Etykiety kolumn nadaje layout.js (rfApplyTableCardLabels) z thead → data-label;
   td.rf-card-title = nagłówek karty, td.rf-card-actions = rząd przycisków. */
@media (max-width: 768px) {

  table.rf-table-cards {
    display: block;
    border: 0;
    border-spacing: 0;
  }

  table.rf-table-cards thead {
    display: none;
  }

  table.rf-table-cards tbody,
  table.rf-table-cards tfoot {
    display: block;
  }

  table.rf-table-cards tbody tr {
    display: block;
    background: var(--surface-2);
    border: 1px solid var(--border-1);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
  }

  table.rf-table-cards tbody td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    padding: 5px 0;
    border: 0;
    text-align: right;
    white-space: normal;
    font-size: 14px;
  }

  table.rf-table-cards tbody td[data-label]::before {
    content: attr(data-label);
    flex: 0 1 auto;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    text-align: left;
  }

  table.rf-table-cards tbody td:empty {
    display: none;
  }

  table.rf-table-cards td.rf-card-title {
    display: block;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    padding: 0 0 8px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--border-1);
  }

  table.rf-table-cards tbody td.rf-card-title::before {
    content: none;
  }

  table.rf-table-cards td.rf-card-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
  }

  table.rf-table-cards tbody td.rf-card-actions::before {
    content: none;
  }

  /* Komórka "blokowa": etykieta nad treścią pełnej szerokości —
     dla komórek z inputami/siatkami, które nie mieszczą się w parze label:wartość. */
  table.rf-table-cards td.rf-card-block {
    display: block;
    text-align: left;
  }

  table.rf-table-cards tbody td.rf-card-block[data-label]::before {
    display: block;
    margin-bottom: 4px;
  }

  table.rf-table-cards td.rf-card-block input,
  table.rf-table-cards td.rf-card-block select {
    width: 100%;
  }

  /* Wewnątrz .rf-table-scroll tabela-karty nie może wymuszać szerokości. */
  .rf-table-scroll>table.rf-table-cards {
    min-width: 0;
    width: 100%;
  }

  .rf-table-scroll>table.rf-table-cards th,
  .rf-table-scroll>table.rf-table-cards td {
    white-space: normal;
  }
}

/* === App Sidebar === */
.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-collapsed-width);
  height: 100vh;
  z-index: 2000;
  background: rgba(13, 20, 42, 0.86);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 4px 0 24px rgba(8, 10, 22, 0.4);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform var(--transition-medium), box-shadow 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

.app-sidebar::-webkit-scrollbar {
  width: 4px;
}

.app-sidebar::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 4px;
}

.app-sidebar:hover::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}

.app-sidebar:hover {
  width: var(--sidebar-width);
  box-shadow: 18px 0 40px rgba(8, 10, 22, 0.7);
}

.app-sidebar__inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  width: var(--sidebar-width);
  padding: 24px 0;
}

.app-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 19px 24px 19px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.app-sidebar__logo {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: conic-gradient(from 180deg, var(--accent), #3bdfb9 55%, var(--accent) 100%);
  box-shadow: 0 0 22px rgba(124, 92, 255, 0.45), inset 0 0 16px rgba(255, 255, 255, 0.16);
}

.app-sidebar__brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.app-sidebar:hover .app-sidebar__brand-text {
  opacity: 1;
  visibility: visible;
}

.app-sidebar__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.app-sidebar__subtitle {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.app-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  padding: 0 12px;
}

.app-sidebar__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-sidebar__group-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  padding: 0 16px;
  margin-bottom: 4px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  white-space: nowrap;
}

.app-sidebar:hover .app-sidebar__group-label {
  opacity: 1;
  visibility: visible;
}

.app-sidebar__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-sidebar__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  background: transparent;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
  text-align: left;
  width: 100%;
  white-space: nowrap;
  position: relative;
}

.app-sidebar__label {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.app-sidebar:hover .app-sidebar__label {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease 0.1s, visibility 0.3s ease 0.1s;
}

.app-sidebar__icon {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  opacity: 0.7;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  flex-shrink: 0;
}

.app-sidebar__link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.app-sidebar:hover .app-sidebar__link:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.08);
}

.app-sidebar__link:hover .app-sidebar__icon {
  opacity: 1;
  transform: scale(1.1);
}

.app-sidebar__link.is-active {
  background: rgba(124, 92, 255, 0.15);
  border-color: rgba(124, 92, 255, 0.3);
  color: #fff;
}

.app-sidebar__link.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 50%;
  width: 3px;
  background: var(--accent);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 10px rgba(124, 92, 255, 0.6);
  opacity: 1;
  transition: opacity var(--transition-medium);
}

.app-sidebar:hover .app-sidebar__link.is-active {
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.25), rgba(124, 92, 255, 0.05));
  border-color: rgba(124, 92, 255, 0.4);
  box-shadow: 0 4px 12px rgba(124, 92, 255, 0.15);
}

.app-sidebar__link.is-active .app-sidebar__icon {
  opacity: 1;
}

.app-sidebar__link--logout {
  color: #ffc0cb;
}

.app-sidebar__link--logout:hover {
  background: rgba(255, 92, 122, 0.16);
  border-color: rgba(255, 92, 122, 0.3);
}

.app-sidebar__badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.2);
  border: 1px solid rgba(124, 92, 255, 0.4);
  margin-left: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.app-sidebar:hover .app-sidebar__badge {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease 0.1s, visibility 0.3s ease 0.1s;
}

.app-sidebar__link--highlight {
  background: rgba(124, 92, 255, 0.16);
  border-color: rgba(124, 92, 255, 0.45);
  box-shadow: 0 0 0 0 rgba(124, 92, 255, 0.45);
}

.app-sidebar__link--highlight:not(.is-active) {
  animation: navPulse 2.8s ease-in-out infinite;
}

@keyframes navPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(124, 92, 255, 0.45);
  }

  60% {
    box-shadow: 0 0 0 14px rgba(124, 92, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(124, 92, 255, 0);
  }
}

.app-mobile-header {
  display: none;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  padding: 14px 20px;
  background: rgba(13, 20, 42, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(8, 10, 22, 0.6);
  backdrop-filter: blur(16px);
  z-index: 1500;
  align-items: center;
  justify-content: space-between;
}

.app-mobile-header__logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: conic-gradient(from 180deg, var(--accent), #3bdfb9 55%, var(--accent) 100%);
}

.app-mobile-header__title {
  font-size: 16px;
  font-weight: 700;
  margin-left: 12px;
}

.app-mobile-header__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-mobile-header__toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-1);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.app-mobile-header__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

.app-sidebar__close {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  cursor: pointer;
  margin-left: auto;
  font-size: 16px;
}

@media (max-width: 1180px) {
  .app-sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-width);
    /* always full width on mobile */
  }

  .app-sidebar__inner {
    padding: 24px 16px;
  }

  .app-sidebar__brand-text,
  .app-sidebar__group-label,
  .app-sidebar__label,
  .app-sidebar__badge {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .app-sidebar__label,
  .app-sidebar__badge {
    transition: none;
  }

  .app-sidebar.is-open {
    transform: translateX(0);
  }

  .app-sidebar__close.show-on-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .app-mobile-header.show-on-mobile {
    display: flex;
  }

  body {
    padding-left: 0;
  }

  .wrap {
    padding-left: var(--page-gutter) !important;
  }
}

/* Utility chips for page meta */
.page-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.page-meta__chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-1);
  background: rgba(255, 255, 255, 0.06);
}

/* Toast stack shared style */
.toast-stack {
  position: fixed;
  top: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1600;
}

.toast {
  min-width: 260px;
  max-width: 340px;
  padding: 14px 16px;
  background: rgba(12, 18, 38, 0.92);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  box-shadow: 0 14px 32px rgba(8, 9, 20, 0.6);
}

.toast--success {
  border-color: rgba(55, 214, 122, 0.35);
}

.toast--danger {
  border-color: rgba(255, 92, 122, 0.35);
}

/* Status bar */
.status-bar {
  position: sticky;
  top: 96px;
  margin: 20px auto;
  max-width: calc(var(--page-max-width) + var(--page-gutter) * 2);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(11, 18, 38, 0.92);
  box-shadow: 0 14px 34px rgba(5, 7, 18, 0.55);
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity var(--transition-medium), transform var(--transition-medium);
}

.status-bar.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.status-bar--ok {
  border-color: rgba(55, 214, 122, 0.4);
  background: rgba(55, 214, 122, 0.1);
}

.status-bar--danger {
  border-color: rgba(255, 92, 122, 0.4);
  background: rgba(255, 92, 122, 0.1);
}

.status-bar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.status-bar__message {
  flex: 1;
  font-size: 14px;
}

.status-bar__dismiss {
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* Responsive utilities */
.hide-on-mobile {
  display: block;
}

.show-on-mobile {
  display: none;
}

@media (max-width: 1024px) {
  :is(.row, .tabs, .controls, .filters, .toolbar, .actions, .topbar, .button-row, .header-actions, .support-tabs) {
    flex-wrap: wrap !important;
  }

  :is(.row, .tabs, .controls, .filters, .toolbar, .actions, .topbar, .button-row, .header-actions, .support-tabs)>* {
    min-width: 0 !important;
    max-width: 100%;
  }

  .card {
    max-width: 100%;
    overflow-x: auto;
  }

  :is(button, .btn, a.btn, .app-nav__toggle, .app-nav__link) {
    min-height: 40px;
    min-width: 40px;
  }

  :is(a.badge, .badge) {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
  }

  input[type="checkbox"],
  input[type="radio"] {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 768px) {
  .wrap {
    margin: 18px auto 56px auto;
    padding: 0 14px;
  }

  .hide-on-mobile {
    display: none !important;
  }

  .show-on-mobile {
    display: block !important;
  }

  .card__inner {
    padding: 16px;
  }

  :is(.tabs, .controls, .filters, .toolbar, .actions, .button-row, .header-actions, .support-tabs)> :is(button, .btn, a.btn, label, input, select, textarea) {
    flex: 1 1 100%;
  }

  /* iOS auto-zoom kill-switch: pole formularza z fontem <16px powoduje zoom
     całej strony przy focusie na iPhonie. !important celowo — musi przebić
     inline'owe 13-15px w blokach <style> poszczególnych stron. */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Animations */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Animations end */
