 body {
        background-color: #f8f9fa;
        min-height: 100vh;
        /* padding-top: 2rem; */
        padding-bottom: 2rem;
      }

      .form-container {
        background-color: #fff;
        border-radius: 15px;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
        position: relative;
        padding: 2.5rem;
        margin-top: 3rem;
      }

      .form-icon {
        width: 80px;
        height: 80px;
        background: linear-gradient(135deg, #ffc107, #e0a800);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: -40px;
        left: 50%;
        transform: translateX(-50%);
        box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
      }

      .form-icon i {
        font-size: 2rem;
        color: #333;
      }

      .form-title {
        margin-top: 2rem;
        margin-bottom: 2rem;
        color: #333;
        font-weight: 600;
        text-align: center;
      }

      .form-label {
        font-weight: 600;
        color: #333;
        margin-bottom: 0.5rem;
      }

      .form-control,
      .form-select {
        border: 2px solid #e9ecef;
        border-radius: 8px;
        padding: 0.75rem 1rem;
        transition: all 0.3s ease;
      }

      .form-control:focus,
      .form-select:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
      }

      .btn-submit {
        background: linear-gradient(135deg, #ffc107, #e0a800);
        border: none;
        border-radius: 8px;
        padding: 0.75rem 2rem;
        font-weight: 600;
        color: #333;
        transition: all 0.3s ease;
        width: 100%;
      }

      .btn-submit:hover {
        background: linear-gradient(135deg, #e0a800, #d39e00);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
      }

      .btn-submit:disabled {
        opacity: 0.7;
        transform: none;
      }

      .auto-field {
        background-color: #f8f9fa;
        color: #6c757d;
      }

      .file-upload-area {
        border: 2px dashed #dee2e6;
        border-radius: 8px;
        padding: 2rem;
        text-align: center;
        transition: all 0.3s ease;
        cursor: pointer;
      }

      .file-upload-area:hover {
        border-color: #007bff;
        background-color: #f8f9fa;
      }

      .file-upload-area.dragover {
        border-color: #007bff;
        background-color: #e3f2fd;
      }



      /* Ẩn luôn phần text 'STT (ID Công việc):' bằng cách thêm class hoặc id cho div chứa label này và áp dụng display: none cho cả label và div bao ngoài. */
      #row-stt-thoigian,
      #col-stt,
      #col-thoigian,
      #sttDisplay,
      #thoigianyeucauDisplay,
      #nguoiyeucau,
      #quanlyxacnhan,
      label[for="stt"],
      label[for="thoigianyeucau"],
      label[for="nguoiyeucau"],
      label[for="quanlyxacnhan"],
      input#stt,
      input#thoigianyeucau,
      input#nguoiyeucau,
      input#quanlyxacnhan {
        display: none !important;
      }

      /* Preview ảnh hàng ngang */
      #filePreview {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 8px;
      }

      .preview-img-card {
        position: relative;
        width: 120px;
        min-width: 120px;
        max-width: 120px;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px #0001;
        background: #fff;
        margin-bottom: 0;
      }

      .preview-img-card img {
        width: 100%;
        height: 90px;
        object-fit: cover;
        display: block;
      }

      .preview-img-card .remove-img-btn {
        position: absolute;
        top: 4px;
        right: 4px;
        background: rgba(255, 255, 255, 0.85);
        border: none;
        border-radius: 50%;
        width: 22px;
        height: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #d9534f;
        font-weight: bold;
        font-size: 15px;
        cursor: pointer;
        z-index: 2;
        box-shadow: 0 1px 4px #0002;
        transition: background 0.2s;
      }

      .preview-img-card .remove-img-btn:hover {
        background: #f8d7da;
        color: #b52a1a;
      }

      .preview-img-card small {
        display: block;
        text-align: center;
        color: #888;
        font-size: 12px;
        padding: 2px 4px 6px 4px;
        word-break: break-all;
      }

      @media (max-width: 768px) {
        .form-container {
          margin: 1rem;
          padding: 1.5rem;
          border-radius: 10px;
        }

        .form-icon {
          width: 60px;
          height: 60px;
          top: -30px;
        }

        .form-icon i {
          font-size: 1.5rem;
        }

        .form-title {
          font-size: 1.25rem;
          margin-top: 1.5rem;
        }
      }

      @media (max-width: 576px) {
        body {
          padding-top: 1rem;
        }

        .form-container {
          margin: 0.5rem;
          padding: 1rem;
        }

        .form-title {
          font-size: 1.1rem;
        }
      }

      /* Header User Info Styling */
      .header-user-info {
        background: rgba(255, 255, 255, 0.18);
        backdrop-filter: blur(8px);
        border-radius: 22px;
        padding: 4px 12px;
        margin-top: 10px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 40px;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
      }

      .header-user-info:hover {
        background: rgba(255, 255, 255, 0.22);
        transform: translateY(-1px);
      }

      .user-avatar {
        width: 30px;
        height: 30px;
        background: linear-gradient(135deg, #ffc107, #e0a800);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #333;
        font-weight: 700;
        font-size: 15px;
        box-shadow: 0 1px 4px rgba(255, 193, 7, 0.18);
        flex-shrink: 0;
      }

      .user-name {
        color: white;
        font-weight: 600;
        font-size: 13px;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.13);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 180px;
      }

      .logout-btn {
        background: transparent;
        border: 1px solid white;
        border-radius: 12px;
        padding: 4px 10px;
        color: white;
        font-weight: 500;
        font-size: 12px;
        transition: all 0.3s ease;
        margin-left: auto;
      }

      .logout-btn:hover {
        background: rgba(255, 255, 255, 0.13);
        color: white;
      }

      .logout-btn:active {
        transform: scale(0.97);
      }

      @media (max-width: 768px) {
        .header-user-info {
          padding: 4px 8px;
          border-radius: 12px;
          min-height: 36px;
          max-width: 98vw;
          gap: 6px;
        }

        .user-avatar {
          width: 26px;
          height: 26px;
          font-size: 13px;
        }

        .user-name {
          font-size: 12px;
          max-width: 90px;
        }

        .logout-btn {
          padding: 4px 8px;
          font-size: 11px;
          border-radius: 10px;
        }
      }

      .header-section {
        padding: 0.6rem 0 0.7rem 0 !important;
        margin-bottom: 0.7rem !important;
        border-radius: 15px;
        text-align: center;
      }

      .header-section h1 {
        font-size: 1.35rem !important;
        margin-bottom: 0.1rem !important;
      }

      .header-section .btn,
      .header-section button,
      .header-section a {
        font-size: 0.95rem !important;
        padding: 0.25rem 0.7rem !important;
      }