/* Salary module specific styles */

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
}

.badge-success {
  background-color: #d1fae5;
  color: #065f46;
}

.badge-warning {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-neutral {
  background-color: #e5e7eb;
  color: #1f2937;
}

.payslip-preview {
  min-height: 220px;
}

/* Mobile optimizations */
@media (max-width: 767px) {
  main > div {
    padding: 1rem !important;
  }

  .card {
    padding: 1rem !important;
  }

  .salary-page-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
  }

  .salary-header-actions {
    width: 100% !important;
    flex-direction: column !important;
  }

  .salary-header-actions a,
  .salary-header-actions button {
    width: 100% !important;
    justify-content: center !important;
  }

  .salary-filter-section {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .salary-filter-controls {
    width: 100%;
    flex-direction: column !important;
  }

  .salary-search {
    width: 100% !important;
    font-size: 16px !important;
  }

  .salary-table-container {
    -webkit-overflow-scrolling: touch;
    width: 100%;
    overflow-x: auto !important;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .table-header,
  .table-cell {
    white-space: nowrap !important;
    font-size: 0.85rem !important;
  }

  .salary-pagination {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.75rem !important;
    margin-top: 1rem !important;
  }

  .salary-pagination-controls {
    gap: 0.5rem !important;
  }

  .driver-mechanic-panels {
    grid-template-columns: 1fr !important;
  }
}

/* Form helper */
.driver-log-panel button,
.mechanic-log-panel button {
  text-decoration: underline;
}

.driver-log-panel input,
.mechanic-log-panel input {
  display: none;
}

