/* style.css */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #f8fafc;
  margin: 0;
  padding: 20px;
  color: #2d3748;
  line-height: 1.6;
}

.wrap {
  max-width: 1000px;
  margin: 0 auto;
}

form {
  background: white;
  padding: 32px;
  border-radius: 16px;
  max-width: 800px;
  margin: 24px auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

input, select, textarea, button {
  width: 100%;
  padding: 14px 16px;
  margin-top: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-sizing: border-box;
  background: #fff;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
  background: #fefefe;
}

textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

label {
  margin-top: 24px;
  margin-bottom: 6px;
  display: block;
  font-weight: 600;
  color: #374151;
  font-size: 15px;
}

label:first-child {
  margin-top: 0;
}

button {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: white;
  border: none;
  cursor: pointer;
  margin-top: 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  padding: 16px 32px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(234, 88, 12, 0.2);
}

button:hover {
  background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

h2, h3 {
  text-align: center;
  color: #1a202c;
  font-weight: 700;
  margin: 0 0 24px 0;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 20px;
}

#producten div {
  margin-bottom: 10px;
}

/* Form sections for settings page */
.form-section {
  margin-bottom: 40px;
}

.form-section h3 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #1a202c;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
  text-align: left;
}

.form-card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 20px;
}

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

@media (max-width: 768px) {
  .row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #e2e8f0;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: auto;
  margin: 0;
}

.btn-primary {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
  color: white;
}

.btn-info {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: white;
}

.btn-info:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
  color: white;
}

.btn-secondary {
  background: #f8fafc;
  color: #374151;
  border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #e2e8f0;
  color: #1a202c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Flash messages */
.flash {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.flash.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.flash.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Login page specific error styling */
form .flash.error {
  background: #ffffff;
  color: #dc2626;
  border: 2px solid #dc2626;
  padding: 15px 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
}

/* Alternative darker error styling */
.flash.error {
  background: #dc2626 !important;
  color: #ffffff !important;
  border: 2px solid #b91c1c !important;
  padding: 15px 20px !important;
  margin-bottom: 20px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  text-align: center !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3) !important;
}

/* Topbar styling */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 20px 30px;
  border-radius: 16px;
  margin-bottom: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

.topbar h1 {
  margin: 0;
  font-size: 28px;
  color: #1a202c;
  font-weight: 700;
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Cost calculation tables */
.cost-section {
  margin-bottom: 30px;
}

.cost-section h4 {
  margin: 0 0 15px 0;
  color: #374151;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
}

.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.cost-table th,
.cost-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.cost-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}

.cost-table td {
  color: #1f2937;
}

.cost-table .right {
  text-align: right;
}

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

.cost-table tfoot td {
  font-weight: 600;
  background: #f8fafc;
  border-top: 2px solid #e2e8f0;
}

.cost-total {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #e2e8f0;
}

.cost-total .total-row td {
  font-size: 18px;
  padding: 15px;
  background: #ea580c;
  color: white;
  font-weight: 700;
}

.cost-total .btw-row td {
  padding: 10px 15px;
  background: #f8fafc;
  color: #6b7280;
}

.cost-total .incl-btw-row td {
  font-size: 20px;
  padding: 15px;
  background: #059669;
  color: white;
  font-weight: 700;
}

.cost-total .total-amount {
  font-size: 22px !important;
}

/* Common navigation styles */
.wrap {
  max-width: 1100px;
  margin: 2rem auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  background: white;
  padding: 24px 32px;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

.topbar h1 {
  margin: 0;
  color: #1a202c;
  font-size: 32px;
  font-weight: 800;
}

.topbar .actions {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  text-decoration: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: #374151;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn:hover {
  background: #f8fafc;
  border-color: #cbd5e0;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn.primary {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #fff;
}

.btn.primary:hover {
  background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%);
  border-color: #c2410c;
}

/* Badge styling */
.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
}

.badge.concept {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #92400e;
}

.badge.submitted {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #065f46;
}

.badge.completed {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  color: #dbeafe;
}

/* Project Overview Styling */
.project-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.info-item {
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid #ea580c;
}

.info-item.full-width {
  grid-column: 1 / -1;
}

.info-item strong {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.info-item span {
  font-size: 14px;
  color: #1e293b;
  font-weight: 500;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.stat-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.stat-number {
  font-size: 28px;
  font-weight: 700;
  color: #ea580c;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.action-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.action-buttons .btn {
  flex: 1;
  min-width: 200px;
  padding: 12px 20px;
  font-size: 14px;
}

/* Object Selection Styling */
.objects-selection-container {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  max-height: 220px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.objects-list {
  max-height: 180px;
  overflow-y: auto;
  padding: 0;
}

.object-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.2s ease;
  cursor: pointer;
}

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

.object-item:hover {
  background: #f8fafc;
}

.object-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.object-item.disabled:hover {
  background: transparent;
}

.object-checkbox {
  width: 18px;
  height: 18px;
  margin-right: 12px;
  cursor: pointer;
  accent-color: #ea580c;
  flex-shrink: 0;
}

.object-label {
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  flex: 1;
  line-height: 1.4;
  margin: 0;
}

.object-item.disabled .object-label {
  color: #9ca3af;
}

.object-counter {
  padding: 10px 16px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  text-align: center;
}

.no-objects-message {
  padding: 20px;
  text-align: center;
  color: #9ca3af;
  font-style: italic;
  font-size: 14px;
}

/* Flash messages */
.flash {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  text-align: center;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.flash.error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

/* Werkbon specific styling */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  margin: 24px auto;
}

table th {
  background: #f8fafc;
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e2e8f0;
}

table td {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  color: #4a5568;
}

table tr:last-child td {
  border-bottom: none;
}

table input, table select {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  margin-top: 0;
}

table input:focus, table select:focus {
  outline: none;
  border-color: #ea580c;
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.1);
}

.icon-col {
  width: 44px;
  text-align: center;
}

.icon-btn {
  background: #fff;
  border: 1px solid #cfd4dc;
  border-radius: 4px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  color: #666;
}

.icon-btn:hover {
  background: #ffebee;
  border-color: #f44336;
  color: #f44336;
}

.line-total {
  font-weight: bold;
}

.total-row {
  background: #f8f9fa;
  font-weight: bold;
  border-top: 2px solid #dee2e6;
}

.total-row td {
  border-bottom: none;
}

.btnbar {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.btn.secondary {
  background: #f8fafc;
  color: #374151;
  border-color: #e2e8f0;
}

.btn.secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e0;
}

/* Table action buttons */
table .btn {
  font-size: 12px;
  padding: 6px 12px;
  margin: 2px;
}

table .btn.delete {
  background: #dc2626;
  color: white;
  border-color: #dc2626;
}

table .btn.delete:hover {
  background: #b91c1c;
}

/* Inline editing styles */
.editable {
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  margin: -8px -12px;
}

.editable:hover {
  background-color: #f8fafc;
  border-color: #cbd5e0;
  transform: scale(1.02);
}

.inline-edit-input {
  width: 100% !important;
  margin: 0 !important;
  padding: 8px 12px !important;
  border: 2px solid #ea580c !important;
  border-radius: 8px !important;
  background: #fff !important;
  font-size: inherit !important;
  font-family: inherit !important;
}

.inline-edit-input:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* Product grid inline editing */
.product-item .editable.muted {
  color: #9ca3af;
  font-style: italic;
}

.delete-btn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.delete-btn:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.right {
  text-align: right;
}

@media (max-width: 768px) {
  .row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  body {
    padding: 12px;
  }
  
  form {
    padding: 24px;
    margin: 16px auto;
  }
  
  .topbar {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .topbar h1 {
    font-size: 24px;
  }
  
  table th, table td {
    padding: 12px 16px;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* Enhanced Button Color System */
.btn-primary {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 4px rgba(234, 88, 12, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 4px rgba(107, 114, 128, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.btn.success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.btn-info:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn.disabled {
    background: #f3f4f6;
    color: #9ca3af;
    border: 1px solid #d1d5db;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn.disabled:hover {
    background: #f3f4f6;
    color: #9ca3af;
    transform: none;
    box-shadow: none;
}

/* Enhanced remove button styling */
.icon-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 3px 8px rgba(239, 68, 68, 0.3);
    line-height: 1;
    text-align: center;
    min-width: 32px;
    padding: 0;
    margin: 0 auto;
}

.icon-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.icon-btn:active {
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
}

/* Icon column styling for remove button */
.icon-col {
    text-align: center;
    vertical-align: middle;
    width: 90px;
    padding: 8px !important;
}

/* Compact remove button styling */
.remove-btn {
    font-size: 12px !important;
    padding: 6px 12px !important;
    min-width: auto !important;
    width: auto !important;
    border-radius: 6px !important;
    font-weight: 600;
    background: #dc2626 !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2) !important;
}

.remove-btn:hover {
    background: #b91c1c !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3) !important;
}

/* Enhanced Form Sections & Cards */
.form-section {
    margin-bottom: 32px;
}

.form-section h3 {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    margin: 0 0 16px 0;
    padding: 16px 24px;
    border-radius: 12px 12px 0 0;
    border: 1px solid #e2e8f0;
    border-bottom: none;
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    font-size: 20px;
    display: inline-block;
}

.form-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0 0 12px 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Enhanced Topbar */
.topbar {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: white;
    padding: 24px 32px;
    border-radius: 12px;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.topbar .actions {
    display: flex;
    gap: 12px;
}

.topbar .actions .btn {
    min-width: auto;
    padding: 10px 16px;
    font-size: 14px;
}

/* Enhanced Table Styling */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 16px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

table th {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #374151;
    font-weight: 600;
    text-align: left;
    padding: 16px;
    border-bottom: 2px solid #e2e8f0;
}

table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}

table tr:hover {
    background-color: #f8fafc;
}

.total-row {
    background: linear-gradient(135deg, #fef3e2 0%, #fed7aa 100%);
    font-weight: 600;
}

.total-row:hover {
    background: linear-gradient(135deg, #fef3e2 0%, #fed7aa 100%) !important;
}

/* Enhanced Small Text */
small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .topbar .actions {
        justify-content: center;
    }
    
    .form-section h3 {
        font-size: 16px;
        padding: 12px 16px;
    }
    
    .form-card {
        padding: 16px;
    }
}

/* Additional responsive rules for auth pages */
@media (max-width: 900px) {
  .forgot-container, .reset-container, form {
    max-width: 720px;
    margin: 12px auto;
    padding: 18px;
    border-radius: 12px;
  }

  .wrap {
    padding: 0 12px;
  }
}

@media (max-width: 480px) {
  .forgot-container, .reset-container, form {
    margin: 8px auto;
    padding: 14px;
    border-radius: 10px;
  }

  .wrap {
    padding: 0 8px;
  }

  input, select, textarea, button {
    padding: 12px;
    font-size: 16px;
  }
}

/* Actieknoppen voor werkbon_lijst */
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #374151;
  font-size: 1.5em;
  margin-right: 8px;
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  outline: none;
}
.action-btn:last-child { margin-right: 0; }
.action-btn-view { background: #e0f2fe; color: #0369a1; }
.action-btn-edit { background: #fef3c7; color: #d97706; }
.action-btn-finalize { background: #dcfce7; color: #166534; }
.action-btn-disabled { background: #f3f4f6; color: #9ca3af; cursor: not-allowed; }
.action-btn:not(.action-btn-disabled):hover {
  background: #ea580c;
  color: #fff;
  box-shadow: 0 4px 12px rgba(234,88,12,0.15);
}
.actions-cell { display: flex; gap: 8px; }