.container {
  max-width: 1600px;
}

.beta-banner {
  background: #ffc107;
  color: #000;
  padding: 10px;
  text-align: center;
  font-weight: 500;
}

.beta-banner a {
  color: #000;
  text-decoration: underline;
}

.page-subtitle {
  color: #666;
  margin-bottom: 20px;
}

.controls {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.submit-link {
  margin-left: auto;
  color: #02133e;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.submit-link:hover {
  text-decoration: underline;
}

.search-box {
  flex: 1;
  min-width: 200px;
  padding: 10px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1em;
}

.filter-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.filter-label {
  font-weight: 500;
  color: #666;
}

.filter-select {
  padding: 8px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95em;
  cursor: pointer;
}

.table-container {
  overflow-x: auto;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
}

thead {
  background: #f5f5f5;
  position: sticky;
  top: 0;
}

th {
  padding: 12px 8px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #ddd;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

th:hover {
  background: #ebebeb;
}

th.sortable::after {
  content: ' ↕';
  opacity: 0.3;
}

th.sorted-asc::after {
  content: ' ↑';
  opacity: 1;
}

th.sorted-desc::after {
  content: ' ↓';
  opacity: 1;
}

td {
  padding: 10px 8px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

tr:hover {
  background: #f9f9f9;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 500;
  white-space: nowrap;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

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

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

.status-payment-pending {
  background: #d1ecf1;
  color: #0c5460;
}

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

.status-approval-pending {
  background: #fff3cd;
  color: #856404;
}

.status-select {
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.85em;
  cursor: pointer;
  background: white;
}

.status-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.notes-cell {
  max-width: 300px;
  white-space: pre-wrap;
  font-size: 0.85em;
  color: #555;
}

.notes-edit {
  width: 100%;
  min-height: 60px;
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.85em;
  resize: vertical;
}

.notes-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.btn-small {
  padding: 4px 12px;
  border: none;
  border-radius: 4px;
  font-size: 0.85em;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-save {
  background: #28a745;
  color: white;
}

.btn-cancel {
  background: #6c757d;
  color: white;
}

.btn-small:hover {
  opacity: 0.8;
}

.amount {
  text-align: right;
  font-family: 'Courier New', monospace;
  white-space: nowrap;
}

.clickable-notes {
  cursor: pointer;
  color: #02133e;
  text-decoration: underline;
}

.clickable-notes:hover {
  color: #0a3161;
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: #666;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #666;
}

.error {
  background: #f8d7da;
  color: #721c24;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.details-toggle {
  cursor: pointer;
  color: #02133e;
  text-decoration: underline;
  font-size: 0.85em;
}

.details-toggle:hover {
  color: #0a3161;
}

.expense-details {
  margin-top: 8px;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 4px;
  font-size: 0.85em;
}

.expense-item {
  padding: 6px 0;
  border-bottom: 1px solid #e0e0e0;
}

.expense-item:last-child {
  border-bottom: none;
}

.expense-label {
  font-weight: 500;
  color: #333;
}

.receipt-link {
  color: #02133e;
  text-decoration: none;
}

.receipt-link:hover {
  text-decoration: underline;
}
