* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Montserrat', sans-serif;
      background-color: #f9f5f0;
      color: #333;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    /* Header & Navigation Styles */
    .header {
      background-color: #3b6b3d;
      color: white;
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  height: 80px;
}

.navbar__section {
  display: flex;
  align-items: center;
}

.navbar__section--left {
  flex: 1;
}

.navbar__menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
  flex: 2;
}

.navbar__brand {
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 2rem;
}

.navbar__user {
  display: flex;
  align-items: center;
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.navbar__user i {
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

.navbar__section--right {
  justify-content: flex-end;
  flex: 1;
}

.navbar__logout {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.2s;
  font-weight: 500;
}

.navbar__logout:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar__logout i {
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .navbar__brand {
    font-size: 1.2rem;
    margin-right: 1rem;
  }
  
  .navbar__user span {
    display: none;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    height: auto;
    padding: 0.5rem;
  }
  
  .navbar__section--left {
    width: 100%;
    order: 1;
    justify-content: space-between;
    margin-bottom: 0.5rem;
  }
  
  .navbar__menu {
    order: 3;
    width: 100%;
    flex-direction: column;
  }
  
  .navbar__section--right {
    order: 2;
    width: auto;
  }
  
  .navbar__logout span {
    display: none;
  }
}
    .navbar__item {
      position: relative;
      margin-left: 1.5rem;
    }

    .navbar__link {
      color: white;
      text-decoration: none;
      font-weight: 500;
      padding: 0.5rem;
      display: flex;
      align-items: center;
    }

    .navbar__link:hover {
      color: #f0e6d2;
    }

    .navbar__link i {
      margin-left: 0.25rem;
      font-size: 1.1rem;
    }

    .dropdown {
      position: absolute;
      top: 100%;
      left: 0;
      background-color: white;
      min-width: 200px;
      border-radius: 4px;
      box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
      opacity: 0;
      visibility: hidden;
      transform: translateY(10px);
      transition: all 0.3s ease;
      z-index: 10;
    }

    .navbar__item:hover .dropdown {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .dropdown__item {
      padding: 0.8rem 1rem;
      display: block;
      color: #333;
      text-decoration: none;
      transition: background-color 0.2s;
    }

    .dropdown__item:hover {
      background-color: #f5f5f5;
      color: #3b6b3d;
    }

    /* Main Content Styles */
    .main {
      flex: 1;
      padding: 2rem;
      max-width: 1400px;
      margin: 0 auto;
      width: 100%;
    }

    .dashboard-header {
      margin-bottom: 2rem;
    }

    .dashboard-header h1 {
      font-size: 2rem;
      font-weight: 700;
      color: #2b190d;
    }

    .dashboard-header p {
      color: #666;
      margin-top: 0.5rem;
    }

    /* Cards Grid */
    .card-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 2rem;
    }

    .card {
      background-color: white;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
      overflow: hidden;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    }

    .card__header {
      padding: 1.5rem;
      display: flex;
      align-items: center;
      border-bottom: 1px solid #f0f0f0;
    }

    .card__icon {
      width: 48px;
      height: 48px;
      background-color: #ebf7ec;
      color: #3b6b3d;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-right: 1rem;
      font-size: 1.5rem;
    }

    .card__title {
      font-size: 1.25rem;
      font-weight: 600;
    }

    .card__body {
      padding: 1.5rem;
    }

    .card__stats {
      display: flex;
      align-items: baseline;
      margin-bottom: 1rem;
    }

    .card__value {
      font-size: 2rem;
      font-weight: 700;
      margin-right: 0.5rem;
    }

    .card__unit {
      color: #777;
      font-size: 0.9rem;
    }

    .card__description {
      color: #666;
      margin-bottom: 1.5rem;
      line-height: 1.5;
    }

    .card__link {
      display: inline-block;
      color: #3b6b3d;
      font-weight: 600;
      text-decoration: none;
    }

    .card__link:hover {
      text-decoration: underline;
    }

    /* Footer Styles */
    .footer {
      background-color: #3b6b3d;
      color: white;
      text-align: center;
      padding: 1.5rem;
      margin-top: auto;
    }

    .footer__content {
      max-width: 1400px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .footer__copyright {
      font-weight: 500;
    }

    .footer__links {
      display: flex;
      list-style: none;
    }

    .footer__link {
      margin-left: 1.5rem;
      color: white;
      text-decoration: none;
      opacity: 0.8;
      transition: opacity 0.2s;
    }

    .footer__link:hover {
      opacity: 1;
    }

    /* Jobsites Navigation Styles */
.jobsites-nav {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  overflow: hidden;
}

.jobsites-nav__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.jobsites-nav__header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #2b190d;
}

.jobsites-nav__toggle {
  background: none;
  border: none;
  color: #3b6b3d;
  display: flex;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
}

.jobsites-nav__toggle i {
  margin-right: 0.5rem;
}

.jobsites-nav__content {
  max-height: 300px;
  overflow-y: auto;
  transition: max-height 0.3s ease;
}

.jobsites-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  padding: 1rem;
}

.jobsites-nav__item {
  margin: 0.25rem 0.5rem 0.25rem 0;
}

.jobsites-nav__link {
  display: block;
  padding: 0.5rem 1rem;
  background-color: #f5f5f5;
  border-radius: 20px;
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.jobsites-nav__link:hover {
  background-color: #e0e0e0;
  color: #333;
}

.jobsites-nav__item.active .jobsites-nav__link {
  background-color: #3b6b3d;
  color: white;
}

/* Responsive styles */
@media (max-width: 768px) {
  .jobsites-nav__content {
    max-height: 0;
    overflow: hidden;
  }

  .jobsites-nav__content.active {
    max-height: 300px;
  }

  .jobsites-nav__list {
    flex-direction: column;
  }

  .jobsites-nav__item {
    margin: 0.25rem 0;
    width: 100%;
  }
}


/* ========================================
   USER01 TEMPLATES - ADDITIONAL STYLES
   ======================================== */

/* Settings Container */
.settings-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.settings-header {
  text-align: center;
  margin-bottom: 2rem;
}

.settings-header h1 {
  color: #495057;
  margin-bottom: 0.5rem;
}

.settings-header p {
  color: #6c757d;
  font-size: 1.1rem;
}

/* Form Containers */
.form-container {
  max-width: 800px;
  margin: 0 auto;
}

.form-card {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.user-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
}

.form-group input,
.form-control {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  transition: border-color 0.2s;
  width: 100%;
  font-size: 0.9rem;
}

.form-control select,
.form-control textarea {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  transition: border-color 0.2s;
  width: 100%;
  font-size: 0.9rem;
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

select.form-control {
  appearance: auto;
  background-color: white;
}

.form-group input:focus,
.form-control:focus {
  outline: none;
  border-color: #3b6b3d;
  box-shadow: 0 0 0 2px rgba(59, 107, 61, 0.1);
}

.required {
  color: #e74c3c;
}

.error-message {
  color: #e74c3c;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: flex-start;
}

/* Button Variants */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  gap: 0.5rem;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background-color: #3b6b3d;
  color: white;
  box-shadow: 0 2px 4px rgba(59, 107, 61, 0.2);
}

.btn-primary:hover {
  background-color: #2d5530;
  box-shadow: 0 4px 8px rgba(59, 107, 61, 0.3);
  color: white;
}

.btn-secondary {
  background-color: #f5f5f5;
  color: #333;
}

.btn-secondary:hover {
  background-color: #e5e5e5;
  color: #333;
}

.btn-back {
  background: transparent;
  color: #3b6b3d;
  border: 1px solid #3b6b3d;
  margin-bottom: 2rem;
}

.btn-back:hover {
  background: #3b6b3d;
  color: white;
}

.action-btn {
  display: inline-block;
  padding: 2px 6px;
  margin: 2px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 3px;
  font-size: 0.7em;
}

.action-btn:hover {
  background: #0056b3;
  color: white;
  text-decoration: none;
}

.btn-set-usertype {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

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

.btn-cancel-usertype {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.btn-cancel-usertype:hover {
  background-color: #545b62;
}

.btn-schedule-cleanup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background-color: #dc3545;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.btn-schedule-cleanup:hover {
  background-color: #c82333;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.btn-schedule-cleanup i {
  font-size: 16px;
}

.btn-set-usertype-trigger {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
  margin-left: 5px;
}

/* Badges */
.pending-badge {
  display: inline-block;
  padding: 0.25em 0.6em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
  color: #fff;
  background-color: #dc3545;
}

.user-type-badge {
  display: inline-block;
  padding: 0.2em 0.5em;
  font-size: 0.7em;
  font-weight: 600;
  border-radius: 0.2rem;
  background-color: #6c757d;
  color: white;
}

.pending-item {
  background: #fff3cd;
  color: #856404;
  padding: 4px 8px;
  margin: 2px 0;
  border-radius: 3px;
  font-size: 0.8em;
  border-left: 3px solid #ffc107;
}

/* Warning Messages */
.jobplan-card__warning {
  margin: 10px 0;
}

.warning-message {
  padding: 12px 15px;
  border-radius: 6px;
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.warning-countdown {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border: 1px solid #ffc107;
  color: #856404;
}

.warning-critical {
  background: linear-gradient(135deg, #f8d7da 0%, #ff7675 100%);
  border: 1px solid #dc3545;
  color: #721c24;
  animation: pulse-warning 2s infinite;
}

.warning-message i {
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.warning-message div {
  flex: 1;
}

.warning-message strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.warning-message p {
  margin: 0;
  font-size: 12px;
  opacity: 0.9;
}

/* Profile Status */
.my-profile-status {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.set-usertype-modal.show {
  display: flex;
}

.set-usertype-modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
}

.set-usertype-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.set-usertype-modal-header h3 {
  margin: 0;
  color: #333;
}

.close-modal {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover {
  color: #333;
}

.set-usertype-form-group {
  margin-bottom: 15px;
}

.set-usertype-form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
}

.set-usertype-form-group select,
.set-usertype-form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.set-usertype-form-group textarea {
  height: 80px;
  resize: vertical;
}

.set-usertype-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

/* Animations */
@keyframes pulse-warning {
  0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* Additional Responsive Rules for User01 Templates */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .btn {
    justify-content: center;
  }

  .settings-container {
    padding: 1rem;
  }

  .form-container {
    padding: 1rem;
  }
}
/* Filter Section Styles */
.filter-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.filter-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 0.5rem;
}

.filter-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2b190d;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-header h3 i {
  font-size: 1.2rem;
  color: #8b4513;
}

.filter-actions {
  display: flex;
  gap: 0.5rem;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  align-items: end;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.filter-field label {
  font-weight: 500;
  font-size: 0.875rem;
  color: #555;
  margin: 0;
}

.filter-field .form-control {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.filter-field .form-control:focus {
  outline: none;
  border-color: #8b4513;
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

/* Responsive Filter Section */
@media (max-width: 768px) {
  .filter-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .filter-actions {
    width: 100%;
  }
  
  .filter-actions .btn {
    flex: 1;
  }
  
  .filter-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Select2 Customization for Filters */
.filter-field .select2-container--default .select2-selection--single {
  height: 38px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
}

.filter-field .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 22px;
  padding-left: 0;
  color: #333;
}

.filter-field .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 36px;
}

.filter-field .select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #8b4513;
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.filter-field .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #999;
}

.select2-dropdown {
  border: 1px solid #8b4513;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #8b4513;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.5rem;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-color: #8b4513;
  outline: none;
}

/* Bills Table Styles */
.bills-table {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow-x: auto;
}

/* Dashboard Header Centered */
.dashboard-header-centered .dashboard-header__content {
  text-align: center;
  flex: 1;
}

.dashboard-header-centered .dashboard-header__content h1 {
  font-size: 1.75rem;
  margin: 0 0 0.5rem 0;
}

.dashboard-header-centered .dashboard-header__content p {
  margin: 0;
  font-size: 0.95rem;
}

.bills-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

/* Bill Cell with Subscripts */
.bill-cell-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bill-cell-sub {
  font-size: 0.75rem;
  color: #6c757d;
  font-style: italic;
  line-height: 1.2;
  margin-top: 2px;
}

.bills-table thead {
  background: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
}

.bills-table thead tr {
  border-bottom: 2px solid #dee2e6;
}

.bills-table th {
  padding: 1rem 0.75rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  color: #495057;
  white-space: nowrap;
  border-bottom: 2px solid #dee2e6;
}

.bills-table tbody tr {
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.2s ease;
}

.bills-table tbody tr:hover {
  background-color: #f8f9fa;
}

.bills-table td {
  padding: 1rem 0.75rem;
  text-align: left;
  font-size: 0.875rem;
  color: #212529;
  vertical-align: middle;
}

.bills-table td strong {
  font-weight: 600;
  color: #2b190d;
}

.bills-table .text-muted {
  color: #6c757d;
  font-style: italic;
}

.bills-table .badge {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
}

.bills-table .badge-success {
  background-color: #d4edda;
  color: #155724;
}

.bills-table .badge-warning {
  background-color: #fff3cd;
  color: #856404;
}

.bills-table .action-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-start;
}

.bills-table .btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.bills-table .btn-action i {
  font-size: 1rem;
}

.bills-table .btn-edit {
  background-color: #e3f2fd;
  color: #1976d2;
}

.bills-table .btn-edit:hover {
  background-color: #1976d2;
  color: white;
}

.bills-table .btn-delete {
  background-color: #ffebee;
  color: #c62828;
}

.bills-table .btn-delete:hover {
  background-color: #c62828;
  color: white;
}

/* Empty State */
.bills-table .empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #6c757d;
}

.bills-table .empty-state i {
  font-size: 4rem;
  color: #dee2e6;
  margin-bottom: 1rem;
}

.bills-table .empty-state h3 {
  margin: 1rem 0 0.5rem;
  color: #495057;
  font-size: 1.25rem;
}

.bills-table .empty-state p {
  margin-bottom: 1.5rem;
  color: #6c757d;
}

/* Mobile Cards View - Hidden by Default */
.bills-cards-mobile {
  display: none;
}

.bill-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.bill-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.bill-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 0.75rem;
}

.bill-id-section {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bill-card-id {
  font-weight: 600;
  font-size: 1rem;
  color: #2b190d;
}

.bill-card-date {
  font-size: 0.75rem;
  color: #6c757d;
  font-style: italic;
}

.bill-card-amount {
  font-size: 1.2rem;
  font-weight: 700;
  color: #27ae60;
}

.bill-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.bill-card-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.875rem;
}

.bill-card-row.bill-card-remarks {
  justify-content: flex-start;
  padding-left: 0.5rem;
}

.bill-card-label {
  font-weight: 500;
  color: #495057;
  min-width: 100px;
}

.bill-card-value {
  flex: 1;
  text-align: right;
  color: #212529;
  font-weight: 500;
}

.bill-card-sub {
  font-size: 0.75rem;
  color: #6c757d;
  font-style: italic;
  line-height: 1.3;
}

.bill-card-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e9ecef;
}

.bill-card-actions .btn-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.bill-card-actions .btn-action i {
  font-size: 1rem;
}

/* Responsive Tables */
@media (max-width: 768px) {
  /* Hide table on mobile */
  .bills-table table {
    display: none;
  }
  
  /* Show mobile cards */
  .bills-cards-mobile {
    display: block;
  }
  
  .bills-table {
    padding: 1rem;
  }
}

/* ==================== Cash Transaction Styles ==================== */

/* General Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 0;
  border: 1px solid #888;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
  padding: 1.5rem;
  background-color: #3b6b3d;
  color: white;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.close {
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  background: none;
}

.close:hover,
.close:focus {
  color: #ddd;
}

.modal-body {
  padding: 2rem;
}

/* Select2 Widget Styles */
.form-group .select2-container {
  width: 100% !important;
}

.form-group .select2-container .select2-selection--single {
  height: 3rem;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.form-group .select2-container .select2-selection__rendered {
  line-height: 2rem;
  padding-left: 0.25rem;
}

.form-group .select2-container .select2-selection__arrow {
  height: 2.8rem;
}

.select2-container--open {
  z-index: 9999 !important;
}

.select2-dropdown {
  z-index: 9999 !important;
}

/* Button Styles */
.btn-submit {
  background-color: #3b6b3d;
  color: white;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-submit:hover {
  background-color: #2d5530;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Cash Table Styles for Desktop */
.cash-table-wrapper {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cash-table {
  width: 100%;
  border-collapse: collapse;
}

.cash-table thead {
  background-color: #3b6b3d;
  color: white;
}

.cash-table th {
  padding: 1rem;
  text-align: left;
  border-bottom: 2px solid #2d5530;
  font-weight: 600;
}

.cash-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.cash-table tbody tr {
  cursor: pointer;
  transition: background-color 0.2s;
}

.cash-table tbody tr:hover {
  background-color: #f9fafb;
}

/* Cell with subscript */
.cell-with-sub {
  display: flex;
  flex-direction: column;
}

.cell-main {
  font-weight: 600;
  color: #1f2937;
}

.cell-sub {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

/* Amount Colors */
.amount-positive {
  color: #10b981;
  font-weight: 600;
}

.amount-negative {
  color: #ef4444;
  font-weight: 600;
}

/* Card View for Mobile */
.cash-cards {
  display: none;
}

.cash-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cash-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cash-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.cash-card-id {
  font-weight: 700;
  color: #1f2937;
  font-size: 1.1rem;
}

.cash-card-date {
  font-size: 0.875rem;
  color: #6b7280;
}

.cash-card-amount {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: right;
}

.cash-card-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.cash-card-row {
  display: flex;
  flex-direction: column;
}

.cash-card-label {
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.cash-card-value {
  color: #1f2937;
  font-weight: 500;
}

.cash-card-sub {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-top: 0.25rem;
  font-style: italic;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: #6b7280;
}

.empty-state i {
  font-size: 3rem;
  color: #9ca3af;
  margin-bottom: 1rem;
}

/* Cash Transaction Responsive Design */
@media (max-width: 768px) {
  .cash-table-wrapper {
    display: none;
  }
  
  .cash-cards {
    display: block;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .modal-content {
    width: 95%;
    margin: 2% auto;
  }
  
  .modal-body {
    padding: 1rem;
  }
}

/* ============================================================================
   HOMEPAGE STYLES (newhomepage.html)
   ============================================================================ */

/* Homepage specific reset - overrides general styles for homepage */
.homepage-body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Homepage Navbar Styles - different from internal pages */
.homepage-body .navbar {
    background: linear-gradient(135deg, #2d5530 0%, #3d6b40 100%);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.homepage-body .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.homepage-body .logo h1 {
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: #4a7c59;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #90c695;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #90c695;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cart-icon {
    color: white;
    font-size: 1.2rem;
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-login, .btn-signup {
    padding: 0.5rem 1rem;
    border: 1px solid white;
    background: transparent;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-signup {
    background: white;
    color: #2d5530;
}

.btn-login:hover {
    background: white;
    color: #2d5530;
}

.btn-signup:hover {
    background: transparent;
    color: white;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(45, 85, 48, 0.8), rgba(45, 85, 48, 0.8)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%234a7c59" width="1200" height="600"/><path fill="%23357a3a" d="M0 400l50-16.7c50-16.6 150-50 250-50s200 33.4 300 33.4 200-33.4 300-33.4 200 33.4 250 50l50 16.6V0H0z"/></svg>');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: #4a7c59;
    color: white;
}

.btn-primary:hover {
    background: #357a3a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2d5530;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: #f8f9fa;
}

.homepage-body .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #2d5530;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4a7c59, #357a3a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: #2d5530;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Products Section */
.products {
    padding: 5rem 0;
    background: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, #4a7c59, #357a3a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.3rem;
    color: #2d5530;
    margin-bottom: 0.5rem;
}

.product-info p {
    color: #666;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4a7c59;
    margin-bottom: 1rem;
}

.btn-cart {
    width: 100%;
    padding: 0.8rem;
    background: #4a7c59;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-cart:hover {
    background: #357a3a;
}

/* Farm Section */
.farm {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.farm-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.farm-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #2d5530;
    margin-bottom: 1.5rem;
}

.farm-text p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.farm-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #4a7c59;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.farm-image {
    height: 400px;
    background: linear-gradient(135deg, #4a7c59, #357a3a);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

/* Footer */
.homepage-body .footer {
    background: #2d5530;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #90c695;
}

.footer-section p, .footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: #90c695;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #4a7c59;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #357a3a;
}

.footer-bottom {
    border-top: 1px solid #4a7c59;
    padding-top: 1rem;
    text-align: center;
    color: #ccc;
}

/* Homepage Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Login/Signup Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8) translateY(-50px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .auth-modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.auth-modal h2 {
    font-family: 'Playfair Display', serif;
    color: #2d5530;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-modal p {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #4a7c59;
    background: white;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.form-group .icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    margin-top: 12px;
}

.password-toggle {
    cursor: pointer;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #4a7c59;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.remember-me input {
    width: auto;
    margin: 0;
}

.forgot-password {
    color: #4a7c59;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #357a3a;
    text-decoration: underline;
}

.auth-submit {
    background: linear-gradient(135deg, #4a7c59, #357a3a);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 124, 89, 0.3);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: #666;
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e1e8ed;
}

.auth-divider span {
    padding: 0 1rem;
}

.social-auth {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    background: white;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.social-btn:hover {
    border-color: #4a7c59;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
}

.social-btn.google {
    border-color: #db4437;
}

.social-btn.google:hover {
    background: #db4437;
    color: white;
}

.social-btn.facebook {
    border-color: #4267B2;
}

.social-btn.facebook:hover {
    background: #4267B2;
    color: white;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e1e8ed;
    color: #666;
}

.auth-switch a {
    color: #4a7c59;
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.25rem;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border-left: 4px solid #c33;
}

.success-message {
    background: #efe;
    color: #363;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border-left: 4px solid #363;
}

/* Homepage Django form field styles */
#id_first_name, #id_last_name, #id_username, #id_email,
#id_password1, #id_password2, #id_type, #id_location,
#id_category, #id_rate {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: white;
}

#id_first_name:focus, #id_last_name:focus, #id_username:focus, #id_email:focus,
#id_password1:focus, #id_password2:focus, #id_type:focus, #id_location:focus,
#id_category:focus, #id_rate:focus {
    outline: none;
    border-color: #4a7c59;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

select#id_type, select#id_location, select#id_category {
    appearance: auto;
    background-color: white;
    cursor: pointer;
}

/* Styling for form errors */
.homepage-body .errorlist {
    color: #e74c3c;
    font-size: 12px;
    list-style: none;
    margin: 5px 0 0 0;
    padding: 0;
}

/* Homepage Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .farm-content {
        grid-template-columns: 1fr;
    }

    .farm-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Mobile modal responsive */
@media (max-width: 480px) {
    .auth-modal {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .auth-modal h2 {
        font-size: 1.75rem;
    }

    .social-auth {
        gap: 0.5rem;
    }

    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
}

/* ============================================================================
   ATTENDANCE TEMPLATES STYLES
   ============================================================================ */

/* ----------------------------------------------------------------------------
   jobid_detail.html - Job ID Detail Page Styles
   ---------------------------------------------------------------------------- */

/* Photo Lightbox Modal */
#photoLightbox .modal-content {
  background-color: rgba(0,0,0,0.9);
  border: none;
}

#photoLightbox .modal-header,
#photoLightbox .modal-footer {
  background-color: rgba(0,0,0,0.7);
  color: white;
  border-color: #333;
}

#photoLightbox .modal-body {
  padding: 0;
  background-color: #000;
  max-height: 70vh;
  overflow: hidden;
}

#lightboxImage {
  max-height: 70vh;
  object-fit: contain;
}

#photoMetadata {
  color: #ccc;
  font-size: 0.9rem;
}

/* Bills Table Styles */
.bills-table .bill-id-cell,
.bills-table .bill-head-cell,
.bills-table .bill-supplier-cell,
.bills-table .bill-payment-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bills-table .bill-id-main {
  font-weight: 600;
  color: #2c3e50;
}

.bills-table .bill-date-sub {
  font-size: 0.75rem;
  color: #7f8c8d;
  font-style: italic;
}

.bills-table .bill-head-main {
  font-weight: 500;
  color: #2c3e50;
}

.bills-table .bill-supplier-main,
.bills-table .bill-payment-main {
  font-weight: 500;
  color: #2c3e50;
}

.bills-table .bill-remarks-sub,
.bills-table .bill-payment-remarks-sub {
  font-size: 0.7rem;
  color: #95a5a6;
  font-style: italic;
  line-height: 1.2;
}

/* Clickable Row Styles */
.bills-table .clickable-row {
  cursor: pointer;
  transition: all 0.2s ease;
}

.bills-table .clickable-row:hover {
  background-color: #f8f9fa;
  transform: translateX(2px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Mobile Cards - Hidden by default */
.bills-cards-mobile {
  display: none;
}

.bill-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.bill-card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.bill-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 10px;
}

.bill-id-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bill-card .bill-id {
  font-weight: 600;
  font-size: 0.95rem;
  color: #2c3e50;
}

.bill-card .bill-date {
  font-size: 0.75rem;
  color: #7f8c8d;
  font-style: italic;
}

.bill-card .bill-amount {
  font-size: 1.1rem;
  color: #27ae60;
  font-weight: 700;
}

.bill-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bill-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.bill-info-row .info-label {
  color: #7f8c8d;
  font-weight: 500;
}

.bill-info-row .info-value {
  color: #2c3e50;
  font-weight: 600;
}

.bill-info-row .info-value-with-sub {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.bill-info-row .info-value-with-sub .info-value {
  color: #2c3e50;
  font-weight: 600;
}

.bill-info-row .info-value-with-sub .info-sub {
  font-size: 0.7rem;
  color: #95a5a6;
  font-style: italic;
  line-height: 1.2;
}

/* Responsive Design for Bills */
@media (max-width: 768px) {
  .bills-table-desktop {
    display: none;
  }
  
  .bills-cards-mobile {
    display: block;
  }
}

/* ----------------------------------------------------------------------------
   create_jobplan.html - Job Plan Creation Styles
   ---------------------------------------------------------------------------- */

/* Additional styles for Jobdesc creation section */
.jobdesc-trigger-container {
  margin-bottom: 1rem;
  text-align: center;
}

.btn-create-jobdesc {
  background: linear-gradient(135deg, #3b6b3d 0%, #4a7a4d 100%);
  border: 1px solid #3b6b3d;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

.btn-create-jobdesc:hover {
  background: linear-gradient(135deg, #2d5230 0%, #3b6b3d 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(59, 107, 61, 0.2);
  color: white;
  text-decoration: none;
}

.jobdesc-creation {
  margin-bottom: 2rem;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.jobdesc-creation .form-section__title {
  color: #3b6b3d;
  border-bottom: 2px solid #3b6b3d;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-close {
  background: none;
  border: none;
  color: #3b6b3d;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 3px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close:hover {
  background: rgba(59, 107, 61, 0.1);
  color: #2d5230;
}

.jobdesc-creation .form-section__subtitle {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.jobdesc-form .form-control {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.75rem;
  transition: all 0.3s ease;
}

.jobdesc-form .form-control:focus {
  border-color: #3b6b3d;
  box-shadow: 0 0 0 2px rgba(59, 107, 61, 0.1);
  outline: none;
}

.btn-save {
  background: linear-gradient(135deg, #3b6b3d 0%, #4a7a4d 100%);
  border: 1px solid #3b6b3d;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  margin-right: 0.5rem;
}

.btn-save:hover {
  background: linear-gradient(135deg, #2d5230 0%, #3b6b3d 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(59, 107, 61, 0.2);
  color: white;
  text-decoration: none;
}

.required {
  color: #dc3545;
}

.form-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* ----------------------------------------------------------------------------
   issue_fertilizer.html - Fertilizer Issue Styles
   ---------------------------------------------------------------------------- */

.fertilizer-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fertilizer-card:hover {
    background: #e8f5e8;
    border-color: #28a745;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.fertilizer-card.selected {
    background: #d4edda;
    border-color: #28a745;
    border-width: 2px;
}

.fertilizer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fertilizer-details h5 {
    margin: 0 0 5px 0;
    color: #333;
}

.fertilizer-details p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.fertilizer-qty {
    background: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: bold;
}

.transaction-history {
    max-height: 300px;
    overflow-y: auto;
}

.transaction-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transaction-status {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-consumed {
    background: #d4edda;
    color: #155724;
}

.status-damaged {
    background: #f8d7da;
    color: #721c24;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 1000;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80%;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-close:hover {
    color: #333;
}

/* ----------------------------------------------------------------------------
   edit_attendance.html - Edit Attendance Styles
   ---------------------------------------------------------------------------- */

.image-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.image-preview {
  position: relative;
  width: 150px;
  height: 150px;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0,0,0,0.6);
  padding: 5px;
  display: flex;
  justify-content: space-between;
}

/* ----------------------------------------------------------------------------
   jobplan_list.html & jobplan_detail.html - Badge Styles
   ---------------------------------------------------------------------------- */

/* Badge styles - Common across multiple templates */
.badge {
  display: inline-block;
  padding: 0.25em 0.6em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.badge-success {
  color: #fff;
  background-color: #28a745;
  box-shadow: 0 1px 2px rgba(40, 167, 69, 0.3);
}

.badge-warning {
  color: #212529;
  background-color: #ffc107;
  box-shadow: 0 1px 2px rgba(255, 193, 7, 0.3);
}

/* ----------------------------------------------------------------------------
   jobplan_detail.html - Additional Styles
   ---------------------------------------------------------------------------- */

/* File selection display styles */
.selected-files-display {
  margin-top: 10px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 4px;
  display: none;
}

.selected-files-display.show {
  display: block;
}

.selected-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  margin: 2px 0;
  background: white;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
}

.selected-file-name {
  color: #374151;
  font-size: 0.875rem;
}

.selected-file-size {
  color: #6b7280;
  font-size: 0.75rem;
}

.file-icon {
  color: #28a745;
  margin-right: 8px;
}

/* Expand Section Responsive */
@media (max-width: 768px) {
  /* Hide desktop expand, show mobile expand */
  .expand-section:not(.expand-section-mobile) {
    display: none;
  }
  
  .expand-section-mobile {
    display: block;
  }
}

/* Expand Section Styles */
.expand-section {
  text-align: center;
  padding: 20px 0;
  margin-top: 16px;
  border-top: 1px solid #e5e7eb;
}

/* Hide mobile expand on desktop */
.expand-section-mobile {
  display: none;
}

.btn-expand {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.btn-expand:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
  background: linear-gradient(135deg, #5568d3, #6a3f96);
}

.btn-expand:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(102, 126, 234, 0.2);
}

.btn-expand .expand-icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.btn-expand:hover .expand-icon {
  transform: translateY(2px);
}

@media (max-width: 768px) {
  .expand-section {
    padding: 16px 0;
  }
  
  .btn-expand {
    padding: 10px 20px;
    font-size: 0.9rem;
    width: 100%;
    max-width: 300px;
  }
  
  /* Hide desktop expand, show mobile expand */
  .expand-section:not(.expand-section-mobile) {
    display: none;
  }
  
  .expand-section-mobile {
    display: block;
  }
}

/* ============================================================================
   DRY PROCESS TEMPLATES STYLES
   ============================================================================ */

/* ----------------------------------------------------------------------------
   dry_process_detail.html - Dry Process Detail Page Styles
   ---------------------------------------------------------------------------- */

.detail-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    overflow: hidden;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: #ffc107;
    color: #212529;
}

.status-completed {
    background: #28a745;
    color: white;
}

.status-in-progress {
    background: #17a2b8;
    color: white;
}

.status-paused {
    background: #ffc107;
    color: #212529;
}

.detail-card__body {
    padding: 24px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.detail-value {
    font-size: 1rem;
    font-weight: 500;
    color: #1f2937;
}

.pictures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.picture-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.picture-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.picture-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}

.picture-delete:hover {
    background: #dc2626;
}

.actions-section {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.weight-badge {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

/* ----------------------------------------------------------------------------
   dry_process_list.html - Dry Process List Page Styles
   ---------------------------------------------------------------------------- */

/* Weight badge alternative styling for list */
.weight-badge {
    background-color: #e8f5e8;
    color: #2e7d2e;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
}

.date-info {
    font-size: 0.9em;
}

.date-info div {
    margin-bottom: 2px;
}

.meta-info {
    font-size: 0.85em;
    color: #666;
    margin-top: 2px;
}

.action-buttons {
    display: flex;
    gap: 5px;
}

.btn-sm {
    padding: 5px 8px;
    font-size: 0.8em;
}

tr.completed {
    background-color: #f8fff8;
}

tr.in-progress {
    background-color: #fff8f0;
}

.text-muted {
    color: #6c757d;
    font-style: italic;
}

/* ----------------------------------------------------------------------------
   dry_process_edit.html - Dry Process Edit Form Styles
   ---------------------------------------------------------------------------- */

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 20px 24px;
    text-align: center;
}

.form-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.form-body {
    padding: 32px;
}

.form-section {
    margin-bottom: 32px;
}

.form-section__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.form-group input, 
.form-group select {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus, 
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-info {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.info-group {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.info-group:last-child {
    margin-bottom: 0;
}

.info-group label {
    font-weight: 600;
    color: #6b7280;
}

.info-group span {
    color: #374151;
    font-weight: 500;
}

.form-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.form-errors p {
    color: #dc2626;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin: 4px 0;
}

.form-text {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 4px;
}

.pictures-section {
    margin-top: 24px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #28a745;
}

.checkbox-container label {
    font-weight: 600;
    color: #374151;
    margin: 0;
}

/* Select2 Custom Styling */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 48px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 1rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 30px;
    color: #374151;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
    right: 8px;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.select2-dropdown {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #28a745;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 12px;
}

/* ----------------------------------------------------------------------------
   dry_process_delete.html - Delete Confirmation Styles
   ---------------------------------------------------------------------------- */

.confirmation-container {
    max-width: 600px;
    margin: 40px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.confirmation-header {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 20px 24px;
    text-align: center;
}

.confirmation-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.confirmation-body {
    padding: 32px;
    text-align: center;
}

.warning-icon {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 20px;
}

.warning-message {
    font-size: 1.125rem;
    color: #374151;
    margin-bottom: 24px;
    line-height: 1.6;
}

.process-details {
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.detail-row:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.confirmation-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
}

.danger-text {
    color: #dc3545;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 16px;
}
/* ============================================
   TASK MANAGEMENT STYLES
   ============================================ */

/* Task Section Badges */
.badge-section {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.badge-safety {
    background-color: #f44336;
}

.badge-quality {
    background-color: #4caf50;
}

.badge-hr {
    background-color: #2196f3;
}

.badge-logistics {
    background-color: #ff9800;
}

.badge-purchase {
    background-color: #9c27b0;
}

.badge-other {
    background-color: #607d8b;
}

.badge-sm {
    padding: 2px 8px;
    font-size: 0.65rem;
}

/* Team Avatars */
.team-avatars {
    display: flex;
    align-items: center;
    gap: -8px;
}

.team-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    border: 2px solid white;
    margin-left: -8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.team-avatar:first-child {
    margin-left: 0;
}

.team-avatar:hover {
    transform: translateY(-2px);
    z-index: 10;
}

.team-avatar-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #555;
    font-weight: 600;
    font-size: 0.7rem;
    border: 2px solid white;
    margin-left: -8px;
}

/* Team List for Detail View */
.team-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.team-member-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background-color: #f5f5f5;
    border-radius: 20px;
    font-size: 0.875rem;
}

.team-member-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 0.7rem;
}

/* Action Buttons Section */
.action-buttons-section {
    display: flex;
    gap: 12px;
    margin: 2rem 0;
    flex-wrap: wrap;
}

/* Files Grid for Task Detail */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.file-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 1rem;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s;
}

.file-card:hover {
    background-color: #f0f9ff;
    border-color: #3b6b3d;
    box-shadow: 0 2px 8px rgba(59, 107, 61, 0.1);
}

.file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #3b6b3d;
    color: white;
    border-radius: 8px;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.file-info {
    flex: 1;
}

.file-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    word-break: break-word;
}

.file-desc {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}

.file-meta {
    display: flex;
    gap: 12px;
    font-size: 0.7rem;
    color: #999;
}

.file-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Timeline Styles for Progress Updates */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e0e0e0;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -25px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #3b6b3d;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #3b6b3d;
}

.timeline-content {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #3b6b3d;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.timeline-header h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.timeline-date {
    font-size: 0.75rem;
    color: #999;
}

.timeline-desc {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.timeline-file {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 12px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.875rem;
}

.timeline-file i {
    color: #3b6b3d;
}

.timeline-file a {
    color: #3b6b3d;
    text-decoration: none;
    font-weight: 500;
}

.timeline-file a:hover {
    text-decoration: underline;
}

/* Selected Files Display */
.selected-files-display {
    margin-top: 12px;
}

.selected-files {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-file {
    display: inline-block;
    padding: 6px 12px;
    background-color: #e8f5e9;
    border: 1px solid #4caf50;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #2e7d32;
}

/* Tasks Container */
.tasks-container {
    margin-top: 1.5rem;
}

.task-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.task-row:hover {
    background-color: #f0f9ff;
}

/* Text Muted */
.text-muted {
    color: #999;
    font-style: italic;
}

/* Additional Badge Styles */
.badge-primary {
    background-color: #3b6b3d;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-secondary {
    background-color: #6c757d;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

/* Responsive Design for Task Components */
@media (max-width: 768px) {
    .action-buttons-section {
        flex-direction: column;
    }
    
    .action-buttons-section .btn {
        width: 100%;
        justify-content: center;
    }
    
    .files-grid {
        grid-template-columns: 1fr;
    }
    
    .team-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .team-avatar-more {
        width: 28px;
        height: 28px;
        font-size: 0.65rem;
    }
}

/* Reminders Popup Styles */
    /* Reminders Popup Styles */
    .reminders-popup {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 9999;
      display: none;
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .reminders-popup.show {
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 1;
    }

    .reminders-popup__overlay {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(4px);
    }

    .reminders-popup__container {
      position: relative;
      background: white;
      border-radius: 16px;
      max-width: 600px;
      width: 90%;
      max-height: 80vh;
      display: flex;
      flex-direction: column;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
      animation: slideUp 0.3s ease;
    }

    @keyframes slideUp {
      from {
        transform: translateY(50px);
        opacity: 0;
      }
      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    .reminders-popup__header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px 24px;
      border-bottom: 1px solid #e9ecef;
    }

    .reminders-popup__header h3 {
      margin: 0;
      font-size: 1.25rem;
      color: #2c3e50;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .reminders-popup__header h3 i {
      color: #667eea;
      font-size: 1.5rem;
    }

    .reminders-popup__close {
      background: none;
      border: none;
      font-size: 1.5rem;
      color: #6c757d;
      cursor: pointer;
      padding: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 4px;
      transition: background 0.2s, color 0.2s;
    }

    .reminders-popup__close:hover {
      background: #f8f9fa;
      color: #dc3545;
    }

    .reminders-popup__body {
      padding: 20px 24px;
      overflow-y: auto;
      flex: 1;
    }

    .reminders-popup__subtitle {
      margin: 0 0 16px 0;
      color: #6c757d;
      font-size: 0.95rem;
    }

    .reminders-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .reminder-item {
      background: #f8f9fa;
      border-radius: 12px;
      padding: 16px;
      cursor: pointer;
      transition: all 0.2s ease;
      border: 2px solid transparent;
      display: flex;
      gap: 12px;
    }

    .reminder-item:hover {
      background: #e9ecef;
      border-color: #667eea;
      transform: translateX(4px);
    }

    .reminder-item__header {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 8px;
    }

    .reminder-item__id {
      font-weight: 600;
      color: #667eea;
      font-size: 0.9rem;
    }

    .reminder-item__body {
      flex: 1;
    }

    .reminder-item__title {
      margin: 0 0 8px 0;
      font-size: 1rem;
      color: #2c3e50;
      line-height: 1.4;
    }

    .reminder-item__meta {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      font-size: 0.85rem;
      color: #6c757d;
    }

    .reminder-item__meta span {
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .reminder-item__arrow {
      display: flex;
      align-items: center;
      color: #adb5bd;
      font-size: 1.5rem;
    }

    .reminders-popup__footer {
      padding: 16px 24px 0;
      margin-top: 16px;
      border-top: 1px solid #e9ecef;
    }

    .btn-block {
      width: 100%;
      text-align: center;
    }

    .reminders-empty {
      text-align: center;
      padding: 40px 20px;
    }

    .reminders-empty i {
      font-size: 4rem;
      color: #28a745;
      margin-bottom: 16px;
    }

    .reminders-empty h4 {
      margin: 0 0 8px 0;
      color: #2c3e50;
    }

    .reminders-empty p {
      margin: 0;
      color: #6c757d;
    }

    /* Reminders Trigger Button */
    .reminders-trigger {
      position: fixed;
      bottom: 80px;
      right: 30px;
      width: 60px;
      height: 60px;
      border-radius: 50%;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
      border: none;
      box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      z-index: 1000;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .reminders-trigger:hover {
      transform: scale(1.1);
      box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
    }

    .reminders-trigger:active {
      transform: scale(0.95);
    }

    .reminders-badge {
      position: absolute;
      top: -5px;
      right: -5px;
      background: #dc3545;
      color: white;
      border-radius: 12px;
      padding: 2px 8px;
      font-size: 0.75rem;
      font-weight: 700;
      border: 2px solid white;
      min-width: 24px;
      text-align: center;
    }

    /* Badge styles for sections */
    .badge-section {
      padding: 0.25em 0.6em;
      font-size: 0.7em;
      font-weight: 600;
      border-radius: 0.25rem;
      text-transform: uppercase;
    }

    .badge-safety {
      background-color: #28a745;
      color: white;
    }

    .badge-quality {
      background-color: #17a2b8;
      color: white;
    }

    .badge-hr {
      background-color: #6f42c1;
      color: white;
    }

    .badge-logistics {
      background-color: #fd7e14;
      color: white;
    }

    .badge-purchase {
      background-color: #e83e8c;
      color: white;
    }

    .badge-other {
      background-color: #6c757d;
      color: white;
    }

    .badge-danger {
      background-color: #dc3545;
      color: white;
    }

    .badge-sm {
      padding: 0.2em 0.4em;
      font-size: 0.65em;
      margin-left: 4px;
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
      .reminders-popup__container {
        width: 95%;
        max-height: 85vh;
      }

      .reminders-trigger {
        width: 50px;
        height: 50px;
        bottom: 70px;
        right: 20px;
        font-size: 1.25rem;
      }

      .reminder-item {
        padding: 12px;
      }
    }
  
/* =============================================
   Task List page styles
   ============================================= */
.badge-section {
  padding: 0.25em 0.6em;
  font-size: 0.75em;
  font-weight: 600;
  border-radius: 0.25rem;
  text-transform: uppercase;
}

.badge-safety {
  background-color: #28a745;
  color: white;
}

.badge-quality {
  background-color: #17a2b8;
  color: white;
}

.badge-hr {
  background-color: #6f42c1;
  color: white;
}

.badge-logistics {
  background-color: #fd7e14;
  color: white;
}

.badge-purchase {
  background-color: #e83e8c;
  color: white;
}

.badge-other {
  background-color: #6c757d;
  color: white;
}

.badge-sm {
  padding: 0.2em 0.4em;
  font-size: 0.7em;
  margin-left: 4px;
}

.badge-danger {
  background-color: #dc3545;
  color: white;
}

.badge-warning {
  background-color: #ffc107;
  color: #212529;
}

/* Status badge styles */
.status-badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  border-radius: 0.25rem;
}

.status-completed {
  background-color: #28a745;
  color: white;
}

.status-in_progress {
  background-color: #ffc107;
  color: #212529;
}

.status-paused {
  background-color: #6c757d;
  color: white;
}

/* Filter section styles */
.filter-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.filter-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #2c3e50;
  font-size: 1.1rem;
}

.filter-actions {
  display: flex;
  gap: 10px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.filter-field {
  display: flex;
  flex-direction: column;
}

.filter-field label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
  margin-bottom: 5px;
}

.filter-field select,
.filter-field input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.filter-field select:focus,
.filter-field input:focus {
  outline: none;
  border-color: #4a90e2;
}

/* Stats container */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-card__icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.stat-card__icon--primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card__icon--success {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.stat-card__icon--warning {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card__icon--info {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card__content h3 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
}

.stat-card__content p {
  margin: 0;
  font-size: 0.9rem;
  color: #7f8c8d;
  font-weight: 500;
}

/* Hide mobile cards on large screens */
.jobids-cards-mobile {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  /* Hide table, show cards */
  .table-responsive {
    display: none;
  }

  .jobids-cards-mobile {
    display: block;
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .filter-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .filter-actions {
    width: 100%;
  }
  
  .filter-actions .btn {
    flex: 1;
  }
}

@media (max-width: 576px) {
  .stats-container {
    grid-template-columns: 1fr;
  }
}
