:root {
  --mfl-blue: #2563eb;
  --mfl-blue-2: #1d4ed8;
  --mfl-slate-50: #f8fafc;
  --mfl-slate-100: #f1f5f9;
  --mfl-slate-200: #e2e8f0;
  --mfl-slate-400: #94a3b8;
  --mfl-slate-600: #475569;
  --mfl-slate-900: #0f172a;
  --mfl-success: #16a34a;
  --mfl-danger: #dc2626;
}

body {
  background: linear-gradient(180deg, #f8fbff 0%, #f8fafc 100%);
}

.icon {
  width: 1rem;
  height: 1rem;
  display: inline-block;
  flex-shrink: 0;
}

.icon-lg { width: 1.25rem; height: 1.25rem; }
.icon-xl { width: 1.5rem; height: 1.5rem; }

.surface-card {
  border: 1px solid rgba(148,163,184,0.2);
  border-radius: 1rem;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 30px rgba(15,23,42,0.05);
}

.form-field {
  width: 100%;
  border: 1px solid var(--mfl-slate-200);
  border-radius: 0.75rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
  color: var(--mfl-slate-900);
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-field:focus {
  outline: none;
  border-color: var(--mfl-blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.14);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-pill.success { background: #dcfce7; color: #166534; }
.badge-pill.warning { background: #fef3c7; color: #92400e; }
.badge-pill.danger { background: #fee2e2; color: #991b1b; }
.badge-pill.info { background: #dbeafe; color: #1d4ed8; }

.table-shell {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(148,163,184,0.25);
  background: #fff;
  box-shadow: 0 12px 35px rgba(15,23,42,0.05);
}

.table-shell table thead th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.table-shell table tbody tr:hover {
  background: #f8fbff;
}

/* Manage Facilities: size columns to content, give name/location/actions the slack */
#facilitiesTable {
  table-layout: auto;
}
#facilitiesTable th,
#facilitiesTable td {
  padding: 0.75rem;
  vertical-align: middle;
}
#facilitiesTable td.loc-cell {
  max-width: 15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .desktop-grid-2 { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 1.25rem; }
}

@media (max-width: 1023px) {
  .desktop-grid-2 { display: block; }
}
