/* Body Background - Match Dashboard */
body {
  background: #f1f5f9;
  display: flex;
}

.container {
  max-width: 100% !important;
  /* Keep card look on mobile: removed background: transparent and box-shadow: none override */
  margin: 0 auto !important;
  /* background: transparent !important;  <-- REMOVED to keep white card */
  /* box-shadow: none !important;         <-- REMOVED to keep shadow */
}

/* Ensure padding on mobile for the inner content if container is full width */
@media (max-width: 768px) {
    .container {
        padding: 0 15px !important;
    }
    
    /* Updated Header Alignment to match Premium style */
    .topbar {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 0 !important;
        width: 100% !important;
    }
    
    .topbar-left {
        width: auto !important; 
        justify-content: flex-start !important;
        gap: 15px !important;
        flex-direction: row !important;
        align-items: center !important;
    }
    
    .page-title {
        margin-left: 10px !important;
        text-align: left !important;
    }
    
    .page-title h1 {
        font-size: 1.2rem !important;
    }
    
    .page-title p {
        display: block !important;
        font-size: 0.75rem !important;
        color: #64748b !important;
        margin-top: 2px !important;
    }
}

.container > header,
.container > footer {
  display: none !important;
}

/* --- FIX: SOLID WHITE BACKGROUND --- */
/* --- FIX: SOLID WHITE BACKGROUND REMOVED (Double Border Fix) --- */
#dataEntryForm {
  background: transparent; 
  padding: 0; /* Remove double padding too, container has padding */
  border-radius: 0;
  box-shadow: none;
  max-width: 1000px;
  margin: 0 auto;
}

/* Grid Layouts */
.fields {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem !important;
  margin: 2rem 0 !important;
}

@media (max-width: 1024px) and (min-width: 769px) {
  .fields {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
  #dataEntryForm {
    padding: 35px;
  }
}

@media (max-width: 768px) and (min-width: 481px) {
  .fields {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.2rem !important;
  }
  #dataEntryForm {
    padding: 30px;
  }
}

@media (max-width: 480px) {
  .fields {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.8rem !important;
  }
  #dataEntryForm {
    padding: 20px 12px;
  }
  .input-field {
    min-width: 0;
  }
  .input-field input {
    font-size: 0.85rem;
    padding: 12px 10px;
  }
  .input-field label {
    font-size: 0.7rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
  }
  .custom-arrow {
    font-size: 0.65rem !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%);
  }
}

.lock-toggle-wrapper {
  position: absolute !important;
  bottom: 12px !important;
  right: 12px !important;
  z-index: 20 !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #9ca3af;
  transition: all 0.3s ease;
  padding: 5px;
}
.lock-toggle-wrapper:hover {
  color: #4b5563;
  transform: scale(1.1);
}
.lock-toggle-wrapper i {
  font-size: 0.9rem;
}