/* =========================================
   GLOBAL RESET & BASICS
   ========================================= */

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

html,
body {
  margin: 0;
  padding: 0;
}

/* =========================================
   BODY / PAGE
   ========================================= */

body,
.page-guides,
.page-guides-dashboard {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background: #f5f5f7;
}

/* =========================================
   CONTAINER / SECTION / CARD – generische Layouts
   ========================================= */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 2rem 0;
}

.section.section-nested {
  padding: 0;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.section-intro {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: #4b5563;
}

/* Generische Card */
.card,
.guides-card,
.article-accordion {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.card-body,
.guides-card {
  padding: 1.25rem 1.5rem;
}

/* Hauptbereich unter der Topbar */
.guides-main {
  padding-top: 4.25rem;
  min-height: calc(100vh - 48px);
}

/* =========================================
   BUTTONS
   ========================================= */

.button,
.guides-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.button {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  background: #2563eb;
  color: #ffffff;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

.button:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-1px);
}

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

.button.button-outline {
  background: #ffffff;
  color: #2563eb;
  border-color: #bfdbfe;
}

.button.button-outline:hover {
  background: #eff6ff;
}

/* Kleine Textlinks */
a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========================================
   ALERTS
   ========================================= */

.alert {
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.alert-error {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* =========================================
   FORM FIELDS
   ========================================= */

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
}

/* =========================================
   TOPBAR & NAVIGATION
   ========================================= */

.guides-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
  backdrop-filter: blur(10px);
}

.guides-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.25rem;
}

.guides-brand a {
  font-size: 1.05rem;
  font-weight: 600;
  color: #e5e7eb;
  text-decoration: none;
}

.guides-brand a:hover {
  color: #ffffff;
}

.guides-brand-sub {
  font-weight: 400;
  font-size: 0.9rem;
  opacity: 0.9;
}

.guides-brand-user {
  display: inline-flex;
  align-items: center;
  margin-left: 0.75rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.guides-brand-user strong {
  color: #e5e7eb;
  margin-left: 0.25rem;
}

/* NAV */

.guides-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.guides-nav-link {
  font-size: 0.85rem;
  color: #e5e7eb;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.guides-nav-link:hover {
  background: rgba(148, 163, 184, 0.18);
  border-color: rgba(148, 163, 184, 0.4);
}

.guides-nav-link--logout {
  border-color: rgba(248, 113, 113, 0.7);
  color: #fecaca;
}

.guides-nav-link--logout:hover {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 1);
}

/* Mobile Nav */
@media (max-width: 720px) {
  .guides-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .guides-nav {
    width: 100%;
    flex-wrap: wrap;
  }
}

/* =========================================
   DASHBOARD LAYOUT
   ========================================= */

.guides-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.guides-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.guides-header-main {
  max-width: 70%;
}

.guides-header h1 {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
  line-height: 1.2;
}

.guides-header-subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  color: #6b7280;
}

.guides-header-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.guides-header-meta .guides-text-muted {
  color: #9ca3af;
  font-size: 0.8rem;
}

/* GRID */

.guides-grid,
.guides-grid-full {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.guides-grid {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
}

.guides-grid-full {
  grid-template-columns: minmax(0, 1fr);
}

/* CARDS */

.guides-card-header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.guides-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.guides-card-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #9ca3af;
  letter-spacing: 0.08em;
}

/* Badges */

.guides-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: #eff6ff;
  color: #1d4ed8;
}

/* Guides Buttons */

.guides-btn-primary {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.guides-btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.guides-btn-outline {
  background: #ffffff;
  color: #cd24eb;
  border-color: #becbfe;
}

.guides-btn-outline:hover {
  background: #eff6ff;
}

.guides-btn-sm {
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
}

/* METRICS */

.guides-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.25rem;
}

.guides-metric {
  flex: 1 1 120px;
  min-width: 120px;
}

.guides-metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.15rem;
}

.guides-metric-value {
  font-size: 1.25rem;
  font-weight: 600;
}

/* ICS Block */

.guides-ics-box {
  background: #f1f5f9;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  border: 1px dashed #cbd5f5;
  font-size: 0.85rem;
}

.guides-ics-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.guides-ics-url {
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  padding: 0.25rem 0.4rem;
  border-radius: 6px;
  background: #e5e7eb;
  color: #111827;
  overflow-wrap: anywhere;
}

.guides-ics-hint {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.guides-ics-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: #d1fae5;
  color: #047857;
}

/* TABLE */

.guides-events-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.guides-events-table thead {
  background: #f3f4f6;
}

.guides-events-table th,
.guides-events-table td {
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.guides-events-table tr:nth-child(even) td {
  background: #f9fafb;
}

.guides-events-table tbody tr:hover td {
  background: #eff6ff;
}

/* STATUS BADGES */

.guides-badge {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.guides-badge-confirmed {
  background: #dcfce7;
  color: #15803d;
}

.guides-badge-pending {
  background: #fef9c3;
  color: #854d0e;
}

.guides-badge-cancelled {
  background: #fee2e2;
  color: #b91c1c;
}

/* LISTE Weitere Guides */

.guides-other-list {
  list-style: none;
  padding: 0;
  margin: 0.25rem;
  font-size: 0.8rem;
  color: darkred;
}

.guides-other-list li + li {
  margin-top: 0.1rem;
}

/* UTILS */

.guides-text-muted {
  color: #6b7280;
}

.guides-pill {
  display: inline-flex;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: #e5e7eb;
  color: #374151;
}

/* ACCORDION */

.article-accordion-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-accordion {
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.article-accordion-summary {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  background: #f9fafb;
  cursor: pointer;
}

.article-accordion-title {
  font-size: 0.9rem;
  font-weight: 500;
}

.article-accordion-arrow {
  font-size: 0.85rem;
  color: #6b7280;
  transition: transform 0.15s ease;
}

.article-accordion[open] .article-accordion-arrow {
  transform: rotate(180deg);
}

.article-accordion-content {
  padding: 0.7rem 0.9rem 0.85rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.article-accordion-text p {
  margin: 0 0 0.5rem;
}

.article-accordion-text p:last-child {
  margin-bottom: 0;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .guides-grid {
    grid-template-columns: 1fr;
  }

  .guides-header-main {
    max-width: 100%;
  }

  .guides-header-meta {
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .guides-layout {
    padding: 1.5rem 1rem 2.5rem;
  }

  .guides-header h1 {
    font-size: 1.4rem;
  }

  .guides-card {
    padding: 1rem 1.1rem;
  }

  .guides-events-table th,
  .guides-events-table td {
    padding: 0.35rem 0.4rem;
  }

  .guides-ics-url {
    width: 100%;
  }
}

.guides-events-table-wrap {
  width: 100%;
  overflow-x: auto;
}

/* DIALOG */

.guides-dialog-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.guides-dialog-customer {
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.guides-booking-map-block {
  margin-top: 0.75rem;
}

.guides-booking-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}

.guides-booking-map-link {
  display: block;
  text-decoration: none;
  cursor: zoom-in;
}

.guides-booking-mini-map {
  height: 220px;
  border-radius: 12px;
  border: 1px solid #dbe3ef;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3);
  pointer-events: none;
}

.guides-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.guides-map-meta {
  display: grid;
  gap: 0.2rem;
}

.guides-map-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.guides-event-map {
  min-height: 70vh;
  border-radius: 16px;
  border: 1px solid #dbe3ef;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

/* TIMELINE */

.guides-timeline {
  position: relative;
  list-style: none;
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
}

.guides-timeline::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e5e7eb;
}

.guides-timeline-item {
  position: relative;
  margin-bottom: 3rem;
  background-color: whitesmoke;
  border-radius: 1rem;
  padding: 1rem;
}

.guides-timeline-dot {
  position: absolute;
  left: -0.05rem;
  top: 0.2rem;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #2563eb;
}

.guides-timeline-meta {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.15rem;
}

.guides-timeline-text {
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .guides-dialog-header {
    gap: 0.5rem;
  }

  .guides-dialog-customer {
    margin-top: 0.5rem;
  }

  .guides-booking-map-head,
  .guides-map-toolbar {
    align-items: stretch;
  }

  .guides-booking-mini-map {
    height: 200px;
  }

  .guides-event-map {
    min-height: 58vh;
  }
}

.guides-dialog-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

.guides-dialog-item {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 0.6rem 0.75rem;
  background: #f9fafb;
}

.guides-dialog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.guides-dialog-date {
  font-weight: 500;
}

.guides-dialog-text {
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* ICON BUTTONS */

.guides-btn-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.4rem;
  min-width: 2.1rem;
  min-height: 2.1rem;
  border-radius: 999px;
  line-height: 1;
}

.guides-btn-icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.guides-icon-svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guides-icon-svg rect {
  fill: rgba(148, 163, 184, 0.15);
}

.guides-btn-icon:hover,
.guides-btn-icon:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.guides-btn-icon:hover .guides-icon-svg,
.guides-btn-icon:focus-visible .guides-icon-svg {
  transform: scale(1.05);
}

.guides-btn-icon,
.guides-btn-icon .guides-icon-svg {
  transition: transform 0.15s ease-out,
              box-shadow 0.15s ease-out,
              background-color 0.15s ease-out,
              border-color 0.15s ease-out;
}

@media (max-width: 640px) {
  .guides-btn-icon {
    padding: 0.35rem 0.5rem;
    min-width: 2.4rem;
    min-height: 2.4rem;
  }

  .guides-icon-svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* BADGE DOT */

.guides-badge-dot {
  position: absolute;
  top: 0.15rem;
  right: 0.18rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background-color: #ef4444;
  box-shadow: 0 0 0 2px #ffffff;
  animation: guides-badge-pulse 0.7s ease-out;
}

@keyframes guides-badge-pulse {
  0% { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* BADGE LABEL */

.guides-badge-label {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  padding: 0 0.35rem;
  height: 1.1rem;
  border-radius: 999px;
  background-color: #16a34a;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.1rem;
  box-shadow: 0 0 0 2px #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* MOBILE TABLE TO CARD */

@media (max-width: 640px) {
  .guides-events-table-wrap {
    overflow: visible;
  }

  .guides-events-table {
    border-collapse: separate;
    border-spacing: 0 0.75rem;
  }

  .guides-events-table thead {
    display: none;
  }

  .guides-events-table tbody,
  .guides-events-table tr,
  .guides-events-table td {
    display: block;
  }

  .guides-events-table tr {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    padding: 0.6rem 0.75rem;
  }

  .guides-events-table td {
    border-bottom: none;
    padding: 0.25rem 0;
  }

  .guides-events-table td + td {
    margin-top: 0.2rem;
  }

  .guides-events-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    margin-bottom: 0.05rem;
  }

  .guides-events-table td[data-label="Datum"] {
    font-weight: 500;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.35rem;
    margin-bottom: 0.25rem;
  }

  .guides-events-table td[data-label="Datum"]::before {
    font-size: 0.75rem;
  }
}

/* =========================================
   APP CHROME (Support-like)
   ========================================= */

.guides-app-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 0.9rem;
  background: #0f172a;
  border-bottom: 1px solid #1f2937;
}

.guides-app-brand {
  color: #f8fafc;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

.guides-app-brand span {
  opacity: 0.9;
  font-weight: 400;
}

.guides-app-brand:hover {
  color: #ffffff;
  text-decoration: none;
}

.guides-app-topbar-spacer {
  flex: 1 1 auto;
}

.guides-app-user {
  color: #e2e8f0;
  font-size: 0.84rem;
  border: 1px solid #334155;
  border-radius: 999px;
  padding: 0.26rem 0.58rem;
  background: rgba(15, 23, 42, 0.4);
}

.guides-impersonation-banner,
.guides-impersonation-flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #cbd5e1;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 0.88rem;
}

.guides-impersonation-flash {
  background: #ecfdf5;
  color: #166534;
}

.guides-impersonation-flash.is-error {
  background: #fef2f2;
  color: #991b1b;
}

.guides-impersonation-stop,
.guides-impersonation-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #1d4ed8;
  background: #1d4ed8;
  color: #fff;
  cursor: pointer;
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.guides-impersonation-stop {
  border-color: #475569;
  background: #fff;
  color: #0f172a;
}

.guides-impersonation-panel {
  margin: 0.35rem 0.2rem 0;
  padding: 0.6rem;
  border: 1px solid #334155;
  border-radius: 10px;
  background: #0f172a;
}

.guides-impersonation-panel-title {
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.guides-impersonation-select {
  background: #fff;
  font-size: 0.84rem;
  margin-bottom: 0.45rem;
}

.guides-topbar-login {
  color: #e2e8f0;
  font-size: 0.84rem;
  border: 1px solid #334155;
  border-radius: 999px;
  padding: 0.26rem 0.58rem;
}

.guides-topbar-login:hover {
  text-decoration: none;
  background: rgba(148, 163, 184, 0.16);
}

.guides-mobile-menu-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #111827;
  color: #e5e7eb;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

.guides-sidebar {
  position: fixed;
  top: 58px;
  left: 0;
  bottom: 0;
  width: 244px;
  z-index: 80;
  background: #111827;
  border-right: 1px solid #1f2937;
  overflow-y: auto;
  padding: 0.72rem 0.6rem;
}

.guides-sidebar-head {
  color: #9ca3af;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0.48rem 0.36rem;
}

.guides-side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
}

.guides-side-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: #d1d5db;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.45rem 0.55rem;
  font-size: 0.86rem;
}

.guides-side-link:hover {
  text-decoration: none;
  background: #1f2937;
  border-color: #374151;
}

.guides-side-link.is-active {
  background: #172554;
  border-color: #1d4ed8;
  color: #bfdbfe;
}

.guides-side-link.is-logout {
  border-color: #7f1d1d;
  color: #fecaca;
}

.guides-side-link.is-logout:hover {
  background: #7f1d1d;
  border-color: #ef4444;
  color: #ffffff;
}

.guides-main {
  padding-top: 58px;
  min-height: 100vh;
}

.guides-main-with-sidebar {
  padding-left: 244px;
}

.guides-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  background: rgba(2, 6, 23, 0.55);
}

.guides-mobile-drawer.is-open {
  display: block;
}

.guides-mobile-drawer-inner {
  width: min(88vw, 320px);
  height: 100%;
  background: #111827;
  border-right: 1px solid #1f2937;
  padding: 0.7rem;
}

.guides-mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #f3f4f6;
  margin-bottom: 0.7rem;
}

.guides-mobile-drawer-head button {
  border: 1px solid #374151;
  border-radius: 8px;
  background: #0f172a;
  color: #e5e7eb;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.guides-mobile-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  height: 52px;
  display: none;
  background: #111827;
  border-top: 1px solid #1f2937;
}

.guides-mobile-link {
  flex: 1 1 0;
  color: #e5e7eb;
  font-size: 0.74rem;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.25rem;
}

.guides-mobile-link:hover {
  text-decoration: none;
  background: #1f2937;
}

@media (max-width: 980px) {
  .guides-sidebar {
    display: none;
  }

  .guides-main-with-sidebar {
    padding-left: 0;
    padding-bottom: 52px;
  }

  .guides-mobile-menu-btn {
    display: inline-flex;
  }

  .guides-mobile-bottom {
    display: flex;
  }
}

/* =========================================
   Guide Verfuegbarkeit (YES/NO)
   ========================================= */

.ga-av-wrap {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  padding: 0.75rem;
}

.ga-av-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.ga-av-title {
  font-weight: 700;
  font-size: 0.98rem;
}

.ga-av-nav {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.22rem 0.5rem;
  cursor: pointer;
}

.ga-av-legend {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}

.ga-av-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.78rem;
  color: #374151;
}

.ga-av-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d1d5db;
}

.ga-av-dot.no {
  background: #dc2626;
}

.ga-av-dot.yes {
  background: #16a34a;
}

.ga-av-dot.conflict {
  background: linear-gradient(135deg, #dc2626 50%, #16a34a 50%);
  border: 1px solid #334155;
}

.ga-av-dot.block {
  background: #0f172a;
}

.ga-av-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.ga-av-cal {
  border: 1px solid #dbe3ea;
  border-radius: 10px;
  background: #ffffff;
  padding: 0.4rem;
}

.ga-av-cal h4 {
  margin: 0.1rem 0 0.4rem;
  font-size: 0.84rem;
}

.ga-av-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.22rem;
  font-size: 0.74rem;
  color: #6b7280;
  margin-bottom: 0.2rem;
}

.ga-av-week span {
  text-align: center;
}

.ga-av-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.22rem;
}

.ga-av-day {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.77rem;
  text-align: center;
  padding: 0.32rem 0.12rem;
  cursor: pointer;
  user-select: none;
}

.ga-av-day.blank {
  border-color: transparent;
  background: transparent;
  cursor: default;
}

.ga-av-day.no {
  background: #fef2f2;
  border-color: #ef4444;
  color: #7f1d1d;
}

.ga-av-day.yes {
  background: #ecfdf5;
  border-color: #22c55e;
  color: #14532d;
}

.ga-av-day.conflict {
  background: linear-gradient(135deg, #fef2f2 50%, #ecfdf5 50%);
  border-color: #334155;
  color: #111827;
}

.ga-av-day.blocked {
  cursor: not-allowed;
  opacity: 0.62;
}

.ga-av-day.today {
  box-shadow: inset 0 0 0 1px #0ea5a3;
}

.ga-av-day.readonly {
  cursor: default;
}

.ga-av-form {
  margin-top: 0.65rem;
  border-top: 1px solid #e5e7eb;
  padding-top: 0.65rem;
}

.ga-av-form-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.ga-av-weekdays {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.ga-av-weekdays label {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 0.18rem 0.42rem;
  font-size: 0.78rem;
  background: #fff;
}

.ga-av-msg {
  margin-top: 0.5rem;
  font-size: 0.84rem;
  color: #374151;
  min-height: 1.2em;
}

.ga-av-msg.err {
  color: #b91c1c;
}

.ga-av-msg.ok {
  color: #166534;
}

@media (max-width: 1200px) {
  .ga-av-grid {
    grid-template-columns: 1fr;
  }

  .ga-av-form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================
   MODERN APP REFRESH
   ========================================= */

:root {
  --g-bg: #eef2ff;
  --g-bg-soft: #f8fafc;
  --g-surface: rgba(255, 255, 255, 0.92);
  --g-surface-strong: #ffffff;
  --g-ink: #0f172a;
  --g-muted: #5b6477;
  --g-border: rgba(148, 163, 184, 0.28);
  --g-border-strong: rgba(148, 163, 184, 0.48);
  --g-brand: #0f172a;
  --g-accent: #0f766e;
  --g-accent-soft: #ccfbf1;
  --g-highlight: #2563eb;
  --g-highlight-soft: #dbeafe;
  --g-danger: #b91c1c;
  --g-danger-soft: #fee2e2;
  --g-success: #166534;
  --g-success-soft: #dcfce7;
  --g-shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.12);
  --g-shadow-md: 0 16px 40px rgba(15, 23, 42, 0.10);
  --g-shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --g-radius-xl: 24px;
  --g-radius-lg: 18px;
  --g-radius-md: 14px;
  --g-topbar-h: 74px;
  --g-sidebar-w: 290px;
}

html {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 32%),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.09), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #eef2ff 42%, #f8fafc 100%);
}

body,
.page-guides,
.page-guides-dashboard {
  font-family: "Avenir Next", "Segoe UI Variable", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--g-ink);
  background: transparent;
}

body {
  line-height: 1.5;
}

.guides-main {
  position: relative;
  min-height: 100vh;
  padding-top: var(--g-topbar-h);
}

.guides-main::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.36), transparent 35%),
    radial-gradient(circle at 20% 0%, rgba(14,165,233,0.08), transparent 20%);
  z-index: -1;
}

.guides-main-with-sidebar {
  padding-left: var(--g-sidebar-w);
}

.section {
  padding: 2.4rem 0 3rem;
}

.container,
.guides-layout {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.guides-layout {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.section > .container {
  display: grid;
  gap: 1.35rem;
}

.section-intro,
.guides-header-subtitle,
.guides-text-muted {
  color: var(--g-muted);
}

h1,
.guides-header h1 {
  margin: 0;
  letter-spacing: -0.035em;
  line-height: 1.02;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.section-title,
.guides-card-title {
  letter-spacing: -0.03em;
  color: var(--g-ink);
}

.guides-card-kicker,
.guides-sidebar-head,
.guides-metric-label {
  color: #64748b;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.card,
.guides-card,
.article-accordion,
.ga-av-wrap,
.guides-dialog-item,
.guides-dialog-customer {
  background: var(--g-surface);
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius-xl);
  box-shadow: var(--g-shadow-sm);
  backdrop-filter: blur(18px);
}

.card-body,
.guides-card {
  padding: 1.25rem;
}

.guides-card-header,
.guides-header,
.ga-av-head {
  gap: 1rem;
}

.guides-grid,
.guides-grid-full {
  gap: 1rem;
}

.guides-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  align-items: start;
}

.guides-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.button,
.guides-btn,
.guides-impersonation-stop,
.guides-impersonation-start {
  min-height: 44px;
  padding: 0.72rem 1.05rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  box-shadow: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.button:hover,
.guides-btn:hover,
.guides-impersonation-stop:hover,
.guides-impersonation-start:hover {
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.button,
.guides-btn-primary,
.guides-impersonation-start {
  background: linear-gradient(135deg, #2563eb 0%, #0f766e 100%);
  border-color: rgba(37, 99, 235, 0.25);
  color: #fff;
}

.button:hover,
.guides-btn-primary:hover,
.guides-impersonation-start:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #0f766e 100%);
  color: #fff;
}

.button.button-outline,
.guides-btn-outline,
.guides-impersonation-stop,
.guides-topbar-login {
  background: rgba(255, 255, 255, 0.78);
  color: var(--g-ink);
  border-color: var(--g-border-strong);
}

.button.button-outline:hover,
.guides-btn-outline:hover,
.guides-impersonation-stop:hover,
.guides-topbar-login:hover {
  background: #fff;
  color: var(--g-ink);
}

.guides-btn-sm {
  min-height: 36px;
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
}

.form-control {
  min-height: 46px;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  border-color: rgba(148, 163, 184, 0.42);
  background: rgba(255, 255, 255, 0.94);
}

.form-control:focus {
  border-color: rgba(37, 99, 235, 0.58);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.alert {
  border-radius: 16px;
  padding: 0.9rem 1rem;
  border: 1px solid transparent;
}

.alert-error {
  background: var(--g-danger-soft);
  border-color: rgba(239, 68, 68, 0.25);
  color: var(--g-danger);
}

.alert-success {
  background: var(--g-success-soft);
  border-color: rgba(34, 197, 94, 0.22);
  color: var(--g-success);
}

.guides-pill,
.guides-chip,
.guides-ics-badge,
.guides-badge {
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-weight: 700;
}

.guides-pill {
  background: rgba(15, 23, 42, 0.06);
  color: var(--g-ink);
}

.guides-app-topbar {
  height: var(--g-topbar-h);
  padding: 0 1rem;
  background: rgba(15, 23, 42, 0.82);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(18px);
}

.guides-app-topbar-inner {
  width: min(100%, 1480px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 100%;
}

.guides-app-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.guides-app-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.guides-app-brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #22c55e 0%, #38bdf8 100%);
  color: #082f49;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 10px 22px rgba(34, 197, 94, 0.22);
}

.guides-app-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.guides-app-brand-text strong {
  color: #f8fafc;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.guides-app-brand-subline {
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.74rem;
  white-space: nowrap;
}

.guides-app-user-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.guides-app-user-role {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(226, 232, 240, 0.72);
}

.guides-app-user,
.guides-topbar-login {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}

.guides-app-user {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(148, 163, 184, 0.26);
  color: #f8fafc;
}

.guides-sidebar {
  top: var(--g-topbar-h);
  width: var(--g-sidebar-w);
  padding: 1rem 0.85rem 1.2rem;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0%, rgba(17, 24, 39, 0.98) 100%);
  border-right: 1px solid rgba(148, 163, 184, 0.16);
}

.guides-side-link {
  min-height: 46px;
  border-radius: 14px;
  padding: 0.75rem 0.8rem;
  color: #dbe4ef;
}

.guides-side-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(148, 163, 184, 0.16);
}

.guides-side-link.is-active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.30), rgba(20, 184, 166, 0.18));
  border-color: rgba(96, 165, 250, 0.42);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.guides-side-link.is-logout {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.18);
}

.guides-impersonation-panel {
  border-radius: 18px;
  padding: 0.8rem;
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(96, 165, 250, 0.22);
}

.guides-impersonation-banner,
.guides-impersonation-flash {
  margin: 0;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--g-border);
  background: rgba(255,255,255,0.76);
  backdrop-filter: blur(14px);
}

.guides-mobile-menu-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.46);
}

.guides-mobile-drawer {
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(4px);
}

.guides-mobile-drawer-inner {
  padding: 1rem;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
}

.guides-mobile-bottom {
  height: 64px;
  background: rgba(255, 255, 255, 0.88);
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  backdrop-filter: blur(18px);
}

.guides-mobile-link {
  color: #475569;
  font-weight: 700;
  font-size: 0.76rem;
}

.guides-mobile-link.is-active {
  color: var(--g-highlight);
}

.guides-header {
  align-items: end;
  margin-bottom: 1.25rem;
}

.guides-header-main {
  max-width: 860px;
}

.guides-header-meta {
  gap: 0.5rem;
}

.guides-metrics {
  gap: 0.75rem;
}

.guides-metric {
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.guides-events-table-wrap {
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.guides-events-table {
  min-width: 0;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
}

.guides-events-table thead {
  display: none;
}

.guides-events-table tbody {
  display: grid;
  gap: 1rem;
}

.guides-events-table tr {
  display: block;
  border: 1px solid var(--g-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--g-shadow-sm);
  overflow: hidden;
}

.guides-events-table th,
.guides-events-table td {
  padding: 1rem;
  vertical-align: top;
}

.guides-events-table td {
  display: block;
  background: transparent !important;
  border-bottom: 0;
}

.guides-events-table td + td {
  border-top: 1px solid rgba(148, 163, 184, 0.24);
}

.guides-events-table td::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 800;
  color: #64748b;
}

.guides-events-table tr:nth-child(even) td,
.guides-events-table tbody tr:hover td {
  background: transparent !important;
}

.article-accordion-summary {
  padding: 0.9rem 1rem;
  background: rgba(15, 23, 42, 0.03);
}

.article-accordion-content {
  padding: 0.9rem 1rem 1rem;
}

.guides-dialog-item,
.guides-dialog-customer {
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.9);
}

.guides-event-side-actions {
  display: grid;
  gap: 0.45rem;
}

.guides-event-meta-card,
.guides-event-main-card {
  display: grid;
  gap: 0.9rem;
}

.guides-event-date-line {
  font-size: clamp(1.1rem, 3.2vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--g-ink);
}

.guides-event-time-stack {
  display: grid;
  gap: 0.2rem;
}

.guides-event-onsite-time {
  font-size: 0.96rem;
  color: var(--g-danger);
  font-weight: 800;
}

.guides-event-start-time {
  font-size: 0.88rem;
  color: var(--g-muted);
}

.guides-event-meta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.guides-event-meta-actions .guides-btn,
.guides-event-side-actions .guides-btn:not(.guides-btn-icon),
.guides-event-contact-stack .guides-btn {
  width: 100%;
  justify-content: center;
}

.guides-event-meta-block {
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.guides-event-block-title {
  display: block;
  margin: 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.guides-event-guides-list {
  display: grid;
  gap: 0.5rem;
}

.guides-event-guide-item {
  display: grid;
  gap: 0.32rem;
}

.guides-event-guide-name {
  font-weight: 700;
  color: var(--g-ink);
}

.guides-event-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.guides-event-guide-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.24);
  background: rgba(219, 234, 254, 0.55);
  color: #2563eb;
  text-decoration: none;
}

.guides-event-guide-phone {
  color: #2563eb;
  text-decoration: none;
  font-weight: 700;
}

.guides-event-main-head {
  display: grid;
  gap: 0.7rem;
}

.guides-event-main-copy {
  display: grid;
  gap: 0.5rem;
}

.guides-event-summary-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: baseline;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.4;
}

.guides-event-option-line {
  margin-top: 0.65rem;
  color: var(--g-muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.guides-event-option-details {
  margin-top: 0.15rem;
}

.guides-event-option-details summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  user-select: none;
  list-style: none;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
}

.guides-event-option-details summary::-webkit-details-marker {
  display: none;
}

.guides-event-option-details summary::after {
  content: '▾';
  font-size: 0.8rem;
  line-height: 1;
  opacity: 0.8;
}

.guides-event-option-details[open] summary {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.guides-event-option-details[open] summary::after {
  content: '▴';
}

.guides-event-summary-line strong {
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--g-ink);
}

.guides-event-customer-line {
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--g-ink);
}

.guides-event-main-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.guides-event-contact-stack {
  display: grid;
  gap: 0.55rem;
  align-items: start;
}

.guides-event-location {
  color: var(--g-muted);
  font-size: 0.92rem;
}

.guides-timeline-item {
  margin-bottom: 1rem;
  padding: 1rem 1rem 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--g-border);
  box-shadow: var(--g-shadow-sm);
}

.guides-auth-card {
  max-width: 760px;
}

.guides-form-stack {
  display: grid;
  gap: 0.8rem;
}

@media (max-width: 1100px) {
  .guides-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .guides-main-with-sidebar {
    padding-left: 0;
    padding-bottom: 64px;
  }

  .section,
  .guides-layout {
    padding-top: 1.4rem;
  }
}

@media (min-width: 860px) {
  .guides-events-table tr {
    display: grid;
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  }

  .guides-events-table td {
    padding: 1.15rem 1.2rem;
  }

  .guides-events-table td + td {
    border-top: 0;
    border-left: 1px solid rgba(148, 163, 184, 0.24);
  }

  .guides-events-table td::before {
    display: none;
  }

  .guides-event-meta-actions .guides-btn,
  .guides-event-side-actions .guides-btn:not(.guides-btn-icon),
  .guides-event-contact-stack .guides-btn {
    width: auto;
  }

  .guides-event-main-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .guides-event-contact-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
  }

  .guides-event-location {
    flex: 1 1 100%;
  }

  .guides-event-guide-item {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (max-width: 720px) {
  :root {
    --g-topbar-h: 68px;
  }

  .guides-app-topbar {
    padding: 0 0.75rem;
  }

  .guides-app-brand-subline,
  .guides-app-user-role {
    display: none;
  }

  .guides-app-brand-mark {
    width: 38px;
    height: 38px;
  }

  .guides-grid,
  .guides-grid-full,
  .section > .container {
    gap: 1rem;
  }

  .guides-card,
  .card-body {
    padding: 1rem;
  }

  .guides-card-header,
  .guides-header,
  .guides-card-actions,
  .ga-av-head,
  .guides-impersonation-banner,
  .guides-impersonation-flash {
    flex-direction: column;
    align-items: stretch;
  }

  .guides-app-user-wrap {
    display: none;
  }

  .guides-events-table td .guides-btn:not(.guides-btn-icon) {
    width: 100%;
    justify-content: center;
  }

  .guides-event-main-actions {
    justify-content: flex-start;
  }
}
