/* Globális alsó állapotsáv (offline, időjárás, dátum/óra) – minden oldal */
body.mezo-offline-bar-active {
  padding-bottom: 3.75rem;
}
@media print {
  body.mezo-offline-bar-active {
    padding-bottom: 0;
  }
}

.mezo-offline-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem 0.95rem;
  padding: 0.45rem 1.35rem;
  padding-bottom: max(0.45rem, env(safe-area-inset-bottom, 0.45rem));
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  border-top: 1px solid;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.08);
}
.mezo-offline-bar__segment--status {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  flex: 1 1 0;
  min-width: 0;
  padding: 0 0.35rem 0 0;
}
.mezo-offline-bar__cluster--right {
  display: inline-flex;
  flex-direction: row;
  direction: ltr;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem 1rem;
  margin-left: auto;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  padding: 0 0 0 0.95rem;
  border-left: 1px solid rgba(15, 23, 42, 0.2);
}
.mezo-offline-bar__led {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  flex-shrink: 0;
  box-sizing: border-box;
}
.mezo-offline-bar__led--on {
  background: #22c55e;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.38), 0 0 9px rgba(34, 197, 94, 0.65);
}
.mezo-offline-bar__led--off {
  background: #ef4444;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 0 8px rgba(239, 68, 68, 0.55);
}
.mezo-offline-bar__led--warn {
  background: #f59e0b;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 0 8px rgba(245, 158, 11, 0.6);
}
.mezo-offline-bar__segment--status .mezo-offline-bar__txt {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 52rem) {
  .mezo-offline-bar__segment--status .mezo-offline-bar__txt {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}
.mezo-offline-bar__segment--weather {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 1 auto;
  min-width: 0;
  padding: 0 0.85rem;
  order: 1;
}
.mezo-offline-bar__wx-wrap {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mezo-offline-bar__time-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  order: 3;
  margin-left: 0.1rem;
  padding: 0 0.85rem;
  border-left: 1px solid rgba(15, 23, 42, 0.2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mezo-offline-bar__wx-pop {
  position: fixed;
  z-index: 120;
  min-width: 15.5rem;
  max-width: min(22rem, calc(100vw - 1rem));
  padding: 0.6rem 0.75rem 0.65rem;
  background: #fff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 0.4rem;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.12);
  box-sizing: border-box;
  pointer-events: auto;
}
.mezo-offline-bar__wx-pop-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.2rem;
}
.mezo-offline-bar__wx-pop-ico {
  font-size: 1.75rem;
  line-height: 1;
}
.mezo-offline-bar__wx-pop-main-t {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e3a5f;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.mezo-offline-bar__wx-pop-sub {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.35;
}
.mezo-offline-bar__wx-pop-row {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  font-size: 0.78rem;
  padding: 0.14rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.mezo-offline-bar__wx-pop-inner > .mezo-offline-bar__wx-pop-row:last-of-type {
  border-bottom: none;
}
.mezo-offline-bar__wx-pop-k {
  flex: 0 1 auto;
  color: #64748b;
}
.mezo-offline-bar__wx-pop-v {
  font-weight: 600;
  text-align: right;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.mezo-offline-bar__wx-pop-foot {
  margin: 0.5rem 0 0;
  font-size: 0.65rem;
  line-height: 1.4;
  color: #64748b;
}
.mezo-offline-bar__wx-pop-empty {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: #64748b;
}
@media print {
  .mezo-offline-bar__wx-pop {
    display: none !important;
  }
}
.mezo-offline-bar__date-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  order: 2;
  margin-left: 0.1rem;
  padding: 0 0.85rem;
  border-left: 1px solid rgba(15, 23, 42, 0.2);
  cursor: pointer;
}
.mezo-offline-bar__segment--date {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 0.86rem;
}
.mezo-offline-bar__segment--time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 0;
  font-size: 0.86rem;
}
.mezo-offline-bar__time-pop {
  position: fixed;
  z-index: 120;
  min-width: 15rem;
  max-width: min(20rem, calc(100vw - 1rem));
  padding: 0.6rem 0.75rem 0.65rem;
  background: #fff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 0.4rem;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.12);
  box-sizing: border-box;
  pointer-events: auto;
}
.mezo-offline-bar__time-pop-date {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.35;
  text-transform: capitalize;
}
.mezo-offline-bar__time-pop-clock {
  font-size: 1.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  color: #1e3a5f;
  letter-spacing: 0.02em;
}
.mezo-offline-bar__time-pop-tz {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}
.mezo-offline-bar__time-pop-foot {
  margin: 0.5rem 0 0;
  font-size: 0.65rem;
  line-height: 1.4;
  color: #64748b;
}
@media print {
  .mezo-offline-bar__time-pop {
    display: none !important;
  }
}
.mezo-offline-bar__cal-pop {
  position: fixed;
  z-index: 120;
  min-width: 14rem;
  max-width: min(22rem, calc(100vw - 1rem));
  padding: 0.55rem 0.65rem 0.6rem;
  background: #fff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 0.4rem;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.12);
  box-sizing: border-box;
  pointer-events: auto;
}
.mezo-offline-bar__cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}
.mezo-offline-bar__cal-month-label {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  font-size: 0.88rem;
  text-align: center;
  color: #1e3a5f;
  line-height: 1.2;
}
.mezo-offline-bar__cal-nav-btn {
  flex: 0 0 auto;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 0.3rem;
  background: #f8fafc;
  color: #1e3a5f;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.mezo-offline-bar__cal-nav-btn:hover {
  background: #e2e8f0;
}
.mezo-offline-bar__cal-nav-btn:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 1px;
}
.mezo-offline-bar__cal-head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.08rem;
  margin-bottom: 0.2rem;
}
.mezo-offline-bar__cal-wd {
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  text-align: center;
  line-height: 1.15;
  padding: 0.1rem 0;
}
.mezo-offline-bar__cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.1rem 0.06rem;
}
.mezo-offline-bar__cal-slot--empty {
  opacity: 0;
  pointer-events: none;
  min-height: 1.4rem;
}
.mezo-offline-bar__cal-day {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.15rem 0;
  line-height: 1.1;
  border-radius: 0.2rem;
}
.mezo-offline-bar__cal-day--today {
  background: #dbeafe;
  color: #1e3a5f;
  outline: 1px solid #93c5fd;
  font-weight: 700;
}
@media print {
  .mezo-offline-bar__cal-pop {
    display: none !important;
  }
}
.mezo-offline-bar__wx-ico {
  font-size: 1.2em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mezo-offline-bar__wx-temp {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 0.92em;
}
.mezo-offline-bar__wx-ico--muted,
.mezo-offline-bar__wx-temp--muted {
  opacity: 0.55;
}
.mezo-offline-bar--ok {
  background: #ecfdf5;
  color: #065f46;
  border-color: #6ee7b7;
}
.mezo-offline-bar--off {
  background: #fffbeb;
  color: #92400e;
  border-color: #fcd34d;
}
.mezo-offline-bar--queue {
  background: #eff6ff;
  color: #1e3a5f;
  border-color: #93c5fd;
}
.mezo-offline-bar--warn {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}
.mezo-offline-bar__btn {
  flex-shrink: 0;
  padding: 0.25rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid currentColor;
  border-radius: 0.3rem;
  background: #fff;
  color: #1e3a5f;
  cursor: pointer;
}
.mezo-offline-bar__btn:hover {
  filter: brightness(0.97);
}
.mezo-queued-hint,
.mezo-offline-toast-ok {
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.4rem 0.65rem;
  border-radius: 0.3rem;
  font-size: 0.9rem;
}
.mezo-offline-toast-ok {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 4.25rem;
  z-index: 49;
  max-width: min(36rem, calc(100% - 2rem));
  margin: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
@media print {
  .mezo-offline-toast-ok {
    position: static;
    transform: none;
  }
}

/* Sötét mód — az állapotsáv ne maradjon „világos pasztell”, illeszkedjen a böngészetes témához */
html[data-mezo-appearance="dark"] .mezo-offline-bar {
  box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.45);
}

html[data-mezo-appearance="dark"] .mezo-offline-bar__cluster--right,
html[data-mezo-appearance="dark"] .mezo-offline-bar__date-wrap,
html[data-mezo-appearance="dark"] .mezo-offline-bar__time-wrap {
  border-left-color: rgba(248, 250, 252, 0.14);
}

html[data-mezo-appearance="dark"] .mezo-offline-bar--ok {
  background: #0d281f;
  color: #bbf7d0;
  border-color: #166534;
}

html[data-mezo-appearance="dark"] .mezo-offline-bar--off {
  background: #451a03;
  color: #fde68a;
  border-color: #a16207;
}

html[data-mezo-appearance="dark"] .mezo-offline-bar--queue {
  background: #172554;
  color: #bfdbfe;
  border-color: #1d4ed8;
}

html[data-mezo-appearance="dark"] .mezo-offline-bar--warn {
  background: #431212;
  color: #fecaca;
  border-color: #b91c1c;
}

html[data-mezo-appearance="dark"] .mezo-offline-bar__btn {
  background: rgba(15, 23, 42, 0.55);
  color: inherit;
  border-color: rgba(248, 250, 252, 0.22);
}

html[data-mezo-appearance="dark"] .mezo-offline-bar__btn:hover {
  filter: brightness(1.12);
}

html[data-mezo-appearance="dark"] .mezo-queued-hint,
html[data-mezo-appearance="dark"] .mezo-offline-toast-ok {
  color: #a7f3d0;
  background: rgba(6, 78, 59, 0.45);
  border-color: rgba(52, 211, 153, 0.35);
}

html[data-mezo-appearance="dark"] .mezo-offline-bar__cal-pop {
  background: var(--card, #1e293b);
  color: var(--text, #e2e8f0);
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}

html[data-mezo-appearance="dark"] .mezo-offline-bar__cal-month-label {
  color: var(--text, #e2e8f0);
}

html[data-mezo-appearance="dark"] .mezo-offline-bar__cal-nav-btn {
  background: #334155;
  border-color: rgba(148, 163, 184, 0.35);
  color: var(--text, #e2e8f0);
}

html[data-mezo-appearance="dark"] .mezo-offline-bar__cal-nav-btn:hover {
  background: #475569;
}

html[data-mezo-appearance="dark"] .mezo-offline-bar__cal-wd {
  color: var(--muted, #94a3b8);
}

html[data-mezo-appearance="dark"] .mezo-offline-bar__cal-day--today {
  background: rgba(59, 130, 246, 0.28);
  color: #dbeafe;
  outline-color: rgba(96, 165, 250, 0.55);
}

html[data-mezo-appearance="dark"] .mezo-offline-bar__wx-pop {
  background: var(--card, #1e293b);
  color: var(--text, #e2e8f0);
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}

html[data-mezo-appearance="dark"] .mezo-offline-bar__wx-pop-main-t {
  color: var(--text, #e2e8f0);
}

html[data-mezo-appearance="dark"] .mezo-offline-bar__wx-pop-sub {
  color: var(--muted, #94a3b8);
}

html[data-mezo-appearance="dark"] .mezo-offline-bar__wx-pop-row {
  border-bottom-color: rgba(148, 163, 184, 0.12);
}

html[data-mezo-appearance="dark"] .mezo-offline-bar__wx-pop-k {
  color: var(--muted, #94a3b8);
}

html[data-mezo-appearance="dark"] .mezo-offline-bar__wx-pop-v {
  color: var(--text, #f1f5f9);
}

html[data-mezo-appearance="dark"] .mezo-offline-bar__wx-pop-foot,
html[data-mezo-appearance="dark"] .mezo-offline-bar__wx-pop-empty {
  color: var(--muted, #94a3b8);
}

html[data-mezo-appearance="dark"] .mezo-offline-bar__time-pop {
  background: var(--card, #1e293b);
  color: var(--text, #e2e8f0);
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}

html[data-mezo-appearance="dark"] .mezo-offline-bar__time-pop-date {
  color: var(--muted, #94a3b8);
}

html[data-mezo-appearance="dark"] .mezo-offline-bar__time-pop-clock {
  color: var(--text, #f1f5f9);
}

html[data-mezo-appearance="dark"] .mezo-offline-bar__time-pop-tz,
html[data-mezo-appearance="dark"] .mezo-offline-bar__time-pop-foot {
  color: var(--muted, #94a3b8);
}
