:root {
  --primary: #6366f1; /* Indigo */
  --primary-hover: #4f46e5;
  --secondary: #ec4899; /* Pink */
  --bg-body: #f8fafc;
  --sidebar-bg: #0f172a; /* Slate 900 */
  --sidebar-text: #94a3b8;
  --sidebar-text-hover: #ffffff;
  --sidebar-active-bg: #1e293b;
  --card-bg: #ffffff;
  --text-main: #334155;
  --text-muted: #64748b;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-lg: 16px;
  --radius-md: 12px;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  margin: 0;
  overflow-x: hidden;
}

/* Shared presentation helpers */
.page-title { color: var(--primary); }
.page-description { color: var(--text-muted); }
.surface-rounded { border-radius: var(--radius-md); }

.clickable-list-row {
  cursor: pointer;
}

.clickable-list-row:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.list-row-link {
  color: inherit;
  font-weight: 650;
  text-decoration: none;
}

.list-row-link:hover {
  color: var(--primary);
}
.content-width-md { max-width: 42rem; }
.empty-state { border: 2px dashed #dee2e6; }
.empty-state-icon { font-size: 3rem; }

/* Venue details and contact directory */
.venue-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 12px;
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
}

.venue-facts li {
  background: #f8faff;
  border: 1px solid #e8ecfa;
  border-radius: 12px;
  min-width: 0;
  padding: 15px 17px;
}

.venue-facts-label {
  color: #64748b;
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.venue-facts-value {
  color: #1e293b;
  display: block;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.venue-contacts {
  background: linear-gradient(135deg, #f7f8ff 0%, #fff 45%, #fff7fb 100%);
  border: 1px solid #e9e9f8;
  border-radius: 18px;
  margin-bottom: 30px;
  padding: clamp(20px, 3vw, 32px);
}

.venue-contacts-heading {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.venue-contacts-eyebrow {
  color: #6366f1;
  display: block;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .13em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.venue-contacts-heading h2 {
  color: #172033;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 750;
  letter-spacing: -.04em;
  margin: 0 0 4px;
}

.venue-contacts-heading p {
  color: #64748b;
  margin: 0;
}

.venue-contacts-icon {
  align-items: center;
  background: #ececff;
  border-radius: 14px;
  color: #5b5fe5;
  display: flex;
  flex: 0 0 50px;
  font-size: 1.4rem;
  height: 50px;
  justify-content: center;
}

.venue-contact-group + .venue-contact-group {
  border-top: 1px solid #e5e8f1;
  margin-top: 28px;
  padding-top: 28px;
}

.venue-contact-group h3 {
  align-items: center;
  color: #334155;
  display: flex;
  font-size: 1rem;
  font-weight: 700;
  gap: 9px;
  margin: 0 0 15px;
}

.venue-contact-group h3 i { color: #6366f1; }

.venue-contact-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
}

.venue-contact-card {
  background: #fff;
  border: 1px solid #e4e8f2;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(30, 41, 59, .04);
  min-width: 0;
  padding: 19px;
}

.venue-contact-person { align-items: center; display: flex; gap: 12px; min-width: 0; }
.venue-contact-person > div { min-width: 0; }

.venue-contact-avatar {
  align-items: center;
  background: linear-gradient(135deg, #e9eaff, #fce7f3);
  border-radius: 12px;
  color: #6366f1;
  display: flex;
  flex: 0 0 42px;
  font-size: 1.25rem;
  height: 42px;
  justify-content: center;
}

.venue-contact-person h4 {
  color: #172033;
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0;
  overflow-wrap: anywhere;
}

.venue-contact-type { color: #718096; font-size: .79rem; }
.venue-contact-methods { display: grid; gap: 8px; margin-top: 18px; }

.venue-contact-methods a {
  align-items: flex-start;
  color: #475569;
  display: flex;
  gap: 10px;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.venue-contact-methods a:hover,
.venue-contact-profile:hover { color: #4f46e5; }
.venue-contact-methods i { color: #8185e7; flex: 0 0 16px; }

.venue-contact-profile {
  border-top: 1px solid #edf0f5;
  color: #5b5fe5;
  display: inline-flex;
  font-size: .86rem;
  font-weight: 700;
  gap: 7px;
  margin-top: 17px;
  padding-top: 12px;
  text-decoration: none;
}

.venue-contact-empty {
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  color: #64748b;
  grid-column: 1 / -1;
  margin: 0;
  padding: 20px;
}

.home-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 4px 0 12px;
}

.home-metrics {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 0 0 28px;
}

.home-metric {
  background: #fff;
  border: 1px solid #e7edf4;
  border-left: 4px solid #94a3b8;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  color: inherit;
  display: block;
  padding: 18px 18px 16px;
  text-decoration: none;
  transition: var(--transition);
}

.home-metric:hover,
.home-metric:focus-visible {
  box-shadow: var(--shadow-md);
  outline: none;
  transform: translateY(-1px);
}

.home-metric-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.1;
}

.home-metric-label {
  color: var(--text-muted);
  font-size: .92rem;
  font-weight: 600;
  margin-top: 6px;
}

.home-metric-hint {
  color: #94a3b8;
  font-size: .8rem;
  margin-top: 8px;
}

.home-metric.total { border-left-color: var(--primary); }
.home-metric.online { border-left-color: #22c55e; }
.home-metric.offline { border-left-color: #dc2626; }
.home-metric.unknown { border-left-color: #94a3b8; }
.home-metric.issues { border-left-color: #f97316; }
.home-metric.priority-high { border-left-color: #dc2626; }

.home-login-prompt {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
}

.home-login-prompt h2 {
  font-size: 1.15rem;
  margin: 0 0 8px;
}

.home-login-prompt p {
  color: var(--text-muted);
  margin: 0 0 16px;
}

/* Dashboard Layout */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
}

.mobile-nav-toggle,
.sidebar-close,
.sidebar-overlay {
  display: none;
}

/* Sidebar Styling */
.sidebar {
  width: 280px;
  background: var(--sidebar-bg);
  background-image: linear-gradient(180deg, rgba(15, 23, 42, 1) 0%, rgba(30, 27, 75, 1) 100%);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  transition: var(--transition);
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.sidebar-header {
  padding: 32px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.sidebar-brand {
  display: inline-block;
  margin: 0;
  text-decoration: none;
}

.sidebar-logo-image {
  border-radius: 40px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28);
  display: block;
  height: auto;
  object-fit: cover;
  transition: transform 180ms ease, box-shadow 180ms ease;
  width: 104px;
}

.sidebar-brand:hover .sidebar-logo-image {
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.38);
  transform: translateY(-1px);
}

.sidebar-brand:focus-visible {
  border-radius: 6px;
  outline: 2px solid #67e8f9;
  outline-offset: 7px;
}

@media (prefers-reduced-motion: reduce) {
  .sidebar-logo-image {
    transition: none;
  }
}

.nav-section {
  padding: 24px 0 8px 0;
}

.nav-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  padding: 0 24px;
  margin-bottom: 12px;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  margin-bottom: 4px;
  padding: 0 16px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.sidebar-nav a i {
  margin-right: 12px;
  font-size: 18px;
  transition: var(--transition);
  color: #64748b;
}

.sidebar-nav a:hover {
  color: var(--sidebar-text-hover);
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateX(4px);
}

.sidebar-nav a:hover i {
  color: var(--primary);
  transform: scale(1.1);
}

.sidebar-nav a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
  border-radius: 0 4px 4px 0;
  opacity: 0;
  transition: var(--transition);
}

.sidebar-nav a:hover::before {
  opacity: 1;
}

/* User Auth Section */
.sidebar-footer {
  margin-top: auto;
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.user-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  font-weight: 700;
}

.logout-btn {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.logout-btn:hover {
  background: #ef4444;
  color: #fff;
}

.logout-form {
  margin: 0;
}

.admin-link, .login-link {
  display: block;
  text-align: center;
  padding: 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
  transition: var(--transition);
}

.admin-link:hover, .login-link:hover {
  background: var(--primary);
  color: #fff;
}

/* Main Content Styling */
.main-content {
  flex-grow: 1;
  margin-left: 280px;
  min-width: 0;
  padding: 40px;
  min-height: 100vh;
  transition: var(--transition);
}

.main-content--full-width {
  margin-left: 0;
}

.content-header {
  margin-bottom: 32px;
}

.content-header h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.content-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

/* Shared operational listings */
.operations-list {
  color: #172033;
  min-width: 0;
}

.operations-alert {
  align-items: center;
  background: linear-gradient(120deg, #991b1b, #dc2626);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(185, 28, 28, .18);
  color: #fff;
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  padding: 14px 16px;
}

.operations-alert-icon {
  align-items: center;
  background: rgba(255, 255, 255, .16);
  border-radius: 10px;
  display: flex;
  flex: 0 0 40px;
  height: 40px;
  justify-content: center;
}

.operations-header {
  align-items: end;
  border-bottom: 1px solid #e7edf4;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 18px;
}

.operations-eyebrow {
  color: #64748b;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.operations-title {
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  letter-spacing: -.04em;
  margin: 0 0 4px;
}

.operations-subtitle {
  color: #64748b;
  margin: 0;
  max-width: 680px;
}

.operations-create {
  align-items: center;
  border-radius: 10px;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  white-space: nowrap;
}

.operations-search {
  background: #f8fafc;
  border: 1px solid #e7edf4;
  border-radius: 14px;
  margin-bottom: 16px;
  padding: 14px;
}

.operations-search-controls {
  display: flex;
  gap: 8px;
}

.operations-search-controls .input-group {
  background: #fff;
  border: 1px solid #dbe3ed;
  border-radius: 10px;
  flex: 1 1 22rem;
  min-width: 0;
  min-height: 46px;
  overflow: hidden;
}

.operations-search-controls > .btn {
  align-items: center;
  border-radius: 10px;
  display: inline-flex;
  justify-content: center;
  min-height: 46px;
}

.operations-search-controls .form-control,
.operations-search-controls .input-group-text {
  border: 0;
  box-shadow: none;
}

.operations-result-summary {
  color: #64748b;
  font-size: .82rem;
  margin-top: 8px;
}

.operations-filters {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.filter-group {
  min-width: 0;
}

.filter-group-label {
  color: #64748b;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.filter-scroller {
  display: flex;
  gap: 7px;
  max-width: 100%;
  overflow-x: auto;
  padding: 1px 1px 7px;
  scrollbar-color: #94a3b8 #e2e8f0;
  scrollbar-width: thin;
}

.filter-chip {
  background: #fff;
  border: 1px solid #dbe3ed;
  border-radius: 999px;
  color: #475569;
  flex: 0 0 auto;
  font-size: .8rem;
  font-weight: 650;
  padding: 6px 10px;
  text-decoration: none;
}

.filter-chip:hover,
.filter-chip.active {
  background: #172033;
  border-color: #172033;
  color: #fff;
}

.filter-chip.offline,
.filter-chip.priority-critical { border-color: #fca5a5; color: #991b1b; }
.filter-chip.priority-high { border-color: #fdba74; color: #9a3412; }
.filter-chip.priority-medium { border-color: #fde047; color: #854d0e; }
.filter-chip.online { border-color: #86efac; color: #166534; }
.filter-chip.priority-low { border-color: #93c5fd; color: #1e40af; }
.filter-chip.unknown,
.filter-chip.priority-very-low { border-color: #cbd5e1; color: #475569; }
.filter-chip.workflow { border-color: #c4b5fd; color: #5b21b6; }
.filter-chip.active { color: #fff; }

.operations-list-scroller {
  border-radius: 14px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-color: #64748b #e2e8f0;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
}

.operations-rows {
  display: grid;
  gap: 8px;
  min-width: 48rem;
}

.operations-row {
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 5px solid #94a3b8;
  border-radius: 12px;
  color: inherit;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(13rem, 1.45fr) repeat(3, minmax(7rem, 1fr)) auto 18px;
  min-height: 70px;
  padding: 12px 14px;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.operations-row:hover,
.operations-row:focus-visible {
  box-shadow: 0 8px 22px rgba(15, 23, 42, .09);
  color: inherit;
  transform: translateY(-1px);
}

.operations-row.offline,
.operations-row.priority-critical { border-left-color: #dc2626; }
.operations-row.priority-high { border-left-color: #f97316; }
.operations-row.priority-medium { border-left-color: #eab308; }
.operations-row.online { border-left-color: #22c55e; }
.operations-row.priority-low { border-left-color: #3b82f6; }
.operations-row.unknown,
.operations-row.priority-very-low { border-left-color: #94a3b8; }
.operations-row.workflow { border-left-color: #8b5cf6; }

.operations-row-heading,
.operations-row-field {
  min-width: 0;
}

.operations-row-title {
  font-size: .98rem;
  font-weight: 750;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.operations-row-subtitle {
  color: #475569;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .76rem;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.operations-row-status-note {
  background: #f1f5f9;
  border-radius: 4px;
  display: inline-block;
  padding: 2px 6px;
}

.operations-row-description {
  color: #64748b;
  display: -webkit-box;
  font-size: .76rem;
  line-height: 1.3;
  margin-top: 3px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.operations-row-field span {
  color: #64748b;
  display: block;
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.operations-row-field strong {
  display: block;
  font-size: .8rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.operations-badge {
  align-items: center;
  background: #f1f5f9;
  border-radius: 999px;
  color: #475569;
  display: inline-flex;
  font-size: .72rem;
  font-weight: 700;
  gap: 5px;
  justify-self: end;
  padding: 5px 8px;
  white-space: nowrap;
}

.operations-badge i { font-size: .48rem; }
.operations-badge.offline,
.operations-badge.priority-critical { background: #fee2e2; color: #991b1b; }
.operations-badge.priority-high { background: #ffedd5; color: #9a3412; }
.operations-badge.priority-medium { background: #fef9c3; color: #854d0e; }
.operations-badge.online { background: #dcfce7; color: #166534; }
.operations-badge.priority-low { background: #dbeafe; color: #1e40af; }
.operations-badge.workflow { background: #ede9fe; color: #5b21b6; }

.operations-row-arrow {
  color: #94a3b8;
  justify-self: end;
}

.operations-pagination {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.operations-page-size {
  align-items: center;
  display: flex;
  gap: 8px;
}

.operations-page-size label {
  color: #64748b;
  font-size: .8rem;
}

.operations-page-size .form-select { width: auto; }

.operations-empty {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 40px 16px;
  text-align: center;
}

.operations-empty i { color: #64748b; font-size: 2rem; }
.operations-empty h2 { font-size: 1.05rem; margin: 8px 0 4px; }
.operations-empty p { color: #64748b; margin-bottom: 12px; }

/* Base styles adjustments */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-hover);
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  border-radius: var(--radius-md);
  padding: 10px 20px;
  font-weight: 600;
  box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.39);
}

/* Inputs */
.form-control {
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  padding: 12px 16px;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Responsive */
@media (max-width: 992px) {
  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1002;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: var(--sidebar-bg);
    color: #fff;
    box-shadow: var(--shadow-md);
  }
  .sidebar-close {
    display: inline-flex;
    position: absolute;
    top: 18px;
    right: 16px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: block;
    border: 0;
    background: rgba(15, 23, 42, 0.55);
  }
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.is-open {
    transform: translateX(0);
  }
  body.navigation-open {
    overflow: hidden;
  }
  .main-content {
    margin-left: 0;
    padding: 72px 24px 24px;
  }
  .main-content--full-width {
    padding-top: 24px;
  }
}

@media (max-width: 767.98px) {
  .content-card { padding: 20px; }
  .operations-header { align-items: start; flex-direction: column; }
  .operations-search-controls { flex-wrap: wrap; }
  .operations-search-controls .input-group { flex-basis: 100%; }
  .operations-rows { min-width: 0; }
  .operations-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px;
  }
  .operations-row-heading { grid-column: 1 / -1; }
  .operations-badge { justify-self: start; }
  .operations-row-arrow { display: none; }
}

@media (max-width: 480px) {
  .main-content { padding: 68px 10px 14px; }
  .main-content--full-width { padding-top: 14px; }
  .content-card { border-radius: 12px; padding: 16px 12px; }
  .operations-alert { align-items: flex-start; flex-wrap: wrap; }
  .operations-alert .btn { margin-left: 54px; }
  .operations-create { width: 100%; justify-content: center; }
  .operations-row { grid-template-columns: 1fr auto; }
  .operations-row-field { grid-column: 1 / -1; }
  .operations-badge { grid-column: 1; }
  .operations-page-size { flex-wrap: wrap; justify-content: center; }
}
.task-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}

.task-editor-list {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-anchor: none;
}

.task-editor-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem 0;
  border-bottom: 1px solid #e5e9ef;
}

.task-editor-row:last-child { border-bottom: 0; }
.task-editor-row.is-dragging {
  background: #eaf2ff;
  outline: 2px dashed #0d6efd;
  outline-offset: -2px;
  border-radius: .5rem;
}
.task-editor-row.is-dragging > * { visibility: hidden; }
.task-editor-drag-active { cursor: grabbing; user-select: none; }
.task-editor-list[aria-busy="true"] .task-editor-position,
.task-editor-list[aria-busy="true"] .task-editor-handle,
.task-editor-list[aria-busy="true"] .task-editor-step { cursor: wait; opacity: .5; }
.task-editor-drag-preview {
  position: fixed;
  z-index: 1000;
  box-sizing: border-box;
  margin: 0;
  border: 1px solid #d7dee8;
  border-radius: .5rem;
  background: #fff;
  box-shadow: 0 .5rem 1.5rem #101b2a33;
  pointer-events: none;
}
.task-editor-handle, .task-editor-step {
  border: 0;
  background: transparent;
  color: #607087;
}
.task-editor-handle { font-size: 1.25rem; }
.task-editor-handle, .task-editor-position { cursor: grab; touch-action: none; }
.task-editor-handle:active, .task-editor-position:active { cursor: grabbing; }
.task-editor-position { min-width: 1.5rem; color: #607087; }
.task-editor-list[data-read-only] .task-editor-position { cursor: default; touch-action: auto; }
.task-editor-open {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
  padding: .4rem;
  border: 0;
  background: transparent;
  color: inherit;
}
.task-editor-open:hover { color: #0d6efd; }
.task-editor-open small { color: #607087; }
.task-editor-step-controls { display: flex; flex-direction: column; }
.task-editor-message { min-height: 3em; margin: 0 0 .5rem; line-height: 1.5; }
.task-editor-dialog {
  width: min(780px, calc(100vw - 2rem));
  max-width: none;
  height: min(760px, calc(100vh - 2rem));
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: .75rem;
  box-shadow: 0 1rem 3rem #0004;
}
.task-editor-dialog::backdrop { background: #101b2a99; }
.task-editor-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e5e9ef;
}
.task-editor-dialog iframe { display: block; width: 100%; height: calc(100% - 61px); border: 0; }
.task-dialog-body { padding: 1.5rem; background: #fff; }

@media (max-width: 600px) {
  .task-editor-header { align-items: flex-start; flex-direction: column; }
}

/* Workflow dashboard and task worksheet. */
.workflow-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.workflow-progress progress {
  width: 12rem;
  max-width: 100%;
  accent-color: var(--bs-primary);
}
.workflow-worksheet { min-width: 850px; }
.workflow-worksheet input, .workflow-worksheet select {
  width: 100%;
  padding: .375rem .5rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .375rem;
}
.workflow-worksheet [hidden] { display: none !important; }
