JSFiddle - React, Tailwind, and code Playground

by velo_ninja

HTML

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  <title>Service Report – Greif (France)</title>
  <style>
    :root {
      --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
      --text: #1e293b;
      --text-light: #64748b;
      --border: #e2e8f0;
      --primary: #2563eb;
      --bg: #ffffff;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: var(--font-main);
      line-height: 1.5;
      color: var(--text);
      background-color: #f8fafc;
      padding: 15px;
    }
    .container {
      max-width: 900px;
      margin: 0 auto;
      background: var(--bg);
      border-radius: 8px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.05);
      overflow: hidden;
    }
    header {
      padding: 20px 25px;
      text-align: center;
      border-bottom: 1px solid var(--border);
    }
    h1 {
      font-size: 22px;
      font-weight: 700;
      color: var(--text);
    }
    .section {
      padding: 20px 25px;
      border-bottom: 1px solid var(--border);
    }
    .section:last-child {
      border-bottom: none;
    }
    .section-title {
      font-size: 16px;
      font-weight: 600;
      margin-bottom: 15px;
      color: var(--primary);
      cursor: pointer;
      user-select: none;
    }
    .section-title:hover::after {
      content: " ✏️";
      opacity: 0.6;
    }
    /* Professional Details */
    .details-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 8px 30px;
      font-size: 14px;
    }
    .detail-row {
      display: flex;
      justify-content: space-between;
    }
    .detail-label {
      font-weight: 500;
      color: var(--text-light);
      min-width: 140px;
    }
    .detail-value {
      font-weight: 500;
      color: var(--text);
      text-align: right;
      padding: 2px 0;
   ...