    body {
      font-family: Arial, sans-serif;
      max-width: 800px;
      margin: 0 auto;
      padding: 20px;
      background-color: #f4f4f4;
      box-sizing: border-box;
    }

    h1 {
      text-align: center;
      color: #333;
      font-size: 2rem;
    }

    /* Navigation tabs */
    .nav-tabs {
      display: flex;
      gap: 0;
      margin-bottom: 20px;
      border-bottom: 2px solid #ddd;
    }

    .tab-btn {
      flex: 1;
      padding: 12px 20px;
      border: none;
      background-color: #f0f0f0;
      cursor: pointer;
      font-size: 1rem;
      font-weight: 500;
      color: #666;
      border-bottom: 3px solid transparent;
      transition: all 0.3s ease;
    }

    .tab-btn:hover {
      background-color: #e0e0e0;
    }

    .tab-btn.active {
      background-color: white;
      color: #28a745;
      border-bottom-color: #28a745;
    }

    /* Tab content */
    .tab-content {
      display: none;
    }

    .tab-content.active {
      display: block;
      animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
      }
      to {
        opacity: 1;
      }
    }

    .form-container,
    .calc-container {
      background: white;
      padding: 20px;
      margin-bottom: 20px;
      border-radius: 8px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    label {
      display: block;
      margin: 10px 0 5px;
      font-size: 1rem;
    }

    input,
    select,
    button {
      width: 100%;
      padding: 10px;
      margin-bottom: 10px;
      border: 1px solid #ccc;
      border-radius: 4px;
      font-size: 1rem;
      box-sizing: border-box;
    }

    button {
      background-color: #28a745;
      color: white;
      border: none;
      cursor: pointer;
      padding: 12px;
    }

    button:hover {
      background-color: #218838;
    }

    .edit-btn {
      background-color: #007bff;
      padding: 8px;
    }

    .edit-btn:hover {
      background-color: #0056b3;
    }

    .delete-btn {
      background-color: #dc3545;
      padding: 8px;
      color: white;
      border: none;
      cursor: pointer;
      border-radius: 4px;
      font-size: 0.9rem;
      margin-left: 5px;
    }

    .delete-btn:hover {
      background-color: #c82333;
    }

    /* Checkbox styling */
    .labor-selection {
      background-color: #f9f9f9;
      padding: 15px;
      border-radius: 4px;
      margin-bottom: 15px;
      border: 1px solid #e0e0e0;
    }

    .checkbox-group {
      margin-bottom: 12px;
    }

    .checkbox-group label {
      display: flex;
      align-items: center;
      margin: 0;
      font-size: 1rem;
      cursor: pointer;
    }

    .checkbox-group input[type="checkbox"] {
      width: auto;
      margin-right: 10px;
      cursor: pointer;
      accent-color: #28a745;
    }

    .labor-selection p {
      margin: 0;
      text-align: center;
    }

    /* Readonly input styling */
    input[readonly] {
      background-color: #f0f0f0;
      color: #666;
      cursor: not-allowed;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 20px;
      font-size: 0.9rem;
    }

    th,
    td {
      border: 1px solid #ddd;
      padding: 10px;
      text-align: left;
    }

    th {
      background-color: #f2f2f2;
    }

    .material-row {
      cursor: pointer;
    }

    .material-row:hover {
      background-color: #e9ecef;
    }

    .result {
      margin-top: 20px;
      font-weight: bold;
      font-size: 1rem;
    }

    /* Modal styles */
    .modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }

    .modal-content {
      background: white;
      padding: 20px;
      border-radius: 8px;
      width: 90%;
      max-width: 400px;
      box-sizing: border-box;
    }

    .modal-content h2 {
      margin-top: 0;
      font-size: 1.5rem;
    }

    .close-btn {
      background-color: #dc3545;
      float: right;
      padding: 8px 12px;
    }

    .close-btn:hover {
      background-color: #c82333;
    }

    /* Responsive styles */
    @media (max-width: 600px) {
      body {
        padding: 10px;
      }

      h1 {
        font-size: 1.5rem;
      }

      .nav-tabs {
        margin-bottom: 15px;
      }

      .tab-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
      }

      .form-container,
      .calc-container {
        padding: 15px;
        margin-bottom: 15px;
      }

      label {
        font-size: 0.9rem;
      }

      input,
      select,
      button {
        padding: 8px;
        font-size: 0.9rem;
      }

      button,
      .edit-btn,
      .delete-btn,
      .close-btn {
        padding: 10px;
      }

      .delete-btn {
        padding: 8px;
        margin-left: 3px;
      }

      table {
        font-size: 0.8rem;
      }

      th,
      td {
        padding: 8px;
      }

      /* Stack table columns on small screens */
      table,
      thead,
      tbody,
      th,
      td,
      tr {
        display: block;
      }

      thead {
        display: none;
        /* Hide table headers on mobile */
      }

      tr {
        margin-bottom: 10px;
        border-bottom: 1px solid #ddd;
      }

      td {
        position: relative;
        padding-left: 50%;
        text-align: left;
      }

      td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        font-weight: bold;
        white-space: nowrap;
      }

      td:last-child {
        text-align: center;
        padding-left: 10px;
      }

      .modal-content {
        padding: 15px;
      }

      .modal-content h2 {
        font-size: 1.2rem;
      }

      .checkbox-group {
        margin-bottom: 10px;
      }

      .checkbox-group label {
        font-size: 0.9rem;
      }
    }

    @media (max-width: 400px) {
      h1 {
        font-size: 1.2rem;
      }

      .tab-btn {
        padding: 8px 10px;
        font-size: 0.8rem;
      }

      input,
      select,
      button {
        font-size: 0.85rem;
        padding: 6px;
      }

      .result {
        font-size: 0.9rem;
      }

      .modal-content {
        width: 95%;
      }

      .edit-btn,
      .delete-btn {
        padding: 5px;
        margin: 0;
        font-size: 0.8rem;
      }

      .delete-btn {
        margin-left: 2px;
      }

      .material-row td {
        padding: 5px;
      }

      .material-row {
        margin-bottom: 15px;
      }
    }
