/* Button Styles */
.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1.5;
}

.btn-primary {
  background-color: #007bff;
  color: white;
}

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

.btn-primary:active {
  background-color: #004494;
  transform: translateY(1px);
}

/* CSV Export Button */
.export-csv-btn {
  margin: 10px 0;
  background-color: #28a745;
}

.export-csv-btn:hover {
  background-color: #218838;
}

.export-csv-btn:active {
  background-color: #1e7e34;
}

/* Button with icon */
.export-csv-btn::before {
  content: "📥 ";
  margin-right: 5px;
}
.checkbox-link {
  text-decoration: none;
  font-size: 1.2em;
  display: inline-block;
  width: 20px;
  text-align: center;
}

.checkbox-link.unchecked {
  color: #999;
}

.checkbox-link.unchecked:hover {
  color: #333;
}

.checkbox-link.checked {
  color: #4CAF50;
}

.checkbox-link.checked:hover {
  color: #f44336;
}
/* Edit Forms - Shared Styles for Settings, Budget, and Users */

/* Container Styles */
.setting-edit-container,
.setting-new-container,
.budget-edit-container,
.budget-new-container,
.user-edit-container,
.user-new-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* Header Sections */
.edit-header,
.new-header {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.edit-header-content,
.new-header-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.edit-icon-wrapper,
.new-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.1);
  flex-shrink: 0;
}

.edit-icon,
.new-icon {
  width: 28px;
  height: 28px;
  color: #2563eb;
}

.edit-header-text,
.new-header-text {
  flex: 1;
}

.edit-title,
.new-title {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px 0;
}

.edit-description,
.new-description {
  font-size: 16px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* Form Sections */
.edit-form-section,
.new-form-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  margin-bottom: 24px;
}

.form-container {
  padding: 32px;
}

.setting-form,
.budget-form,
.user-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Error Sections */
.error-section {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.error-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.error-icon {
  width: 20px;
  height: 20px;
  color: #dc2626;
  flex-shrink: 0;
}

.error-title {
  font-size: 12px;
  font-weight: 600;
  color: #dc2626;
  margin: 0;
}

.error-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.error-item {
  font-size: 12px;
  color: #991b1b;
  padding: 4px 0;
  padding-left: 28px;
  position: relative;
}

.error-item::before {
  content: "•";
  position: absolute;
  left: 12px;
  font-weight: bold;
}

/* Field Groups */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.field-icon {
  width: 18px;
  height: 18px;
  color: #6b7280;
  flex-shrink: 0;
}

.field-label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin: 0;
}

.field-wrapper {
  position: relative;
}

/* Form Inputs */
.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 12px;
  color: #374151;
  background: #ffffff;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input-mono {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  background: #f8fafc;
}

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

.form-readonly {
  padding: 12px 16px;
  background: #f3f4f6;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  color: #6b7280;
  font-size: 12px;
}

/* Checkbox Groups */
.checkbox-group {
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  background: white;
  margin: 0;
  flex-shrink: 0;
  accent-color: #3b82f6;
}

.checkbox-content {
  flex: 1;
}

.checkbox-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 4px 0;
}

.checkbox-description {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  margin-top: 8px;
}

.btn-primary {
  background: #3b82f6;
  color: white;
  border: 2px solid #3b82f6;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #6b7280;
  border: 2px solid transparent;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  color: #374151;
  background: #f3f4f6;
  border-color: #e5e7eb;
}

/* Navigation Sections */
.edit-nav-section {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.nav-link {
  color: #6b7280;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: #374151;
  background: #e5e7eb;
}

.nav-link-view {
  color: #3b82f6;
}

.nav-link-view:hover {
  color: #2563eb;
  background: rgba(59, 130, 246, 0.1);
}

.nav-link-back {
  color: #6b7280;
}

.nav-separator {
  color: #d1d5db;
  font-weight: 300;
  margin: 0 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .setting-edit-container,
  .setting-new-container,
  .budget-edit-container,
  .budget-new-container,
  .user-edit-container,
  .user-new-container {
    padding: 16px;
  }
  
  .edit-header,
  .new-header {
    padding: 20px 16px;
  }
  
  .edit-header-content,
  .new-header-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .edit-title,
  .new-title {
    font-size: 24px;
  }
  
  .form-container {
    padding: 24px 20px;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .edit-nav-section {
    flex-direction: column;
    text-align: center;
  }
  
  .checkbox-wrapper {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .edit-icon-wrapper,
  .new-icon-wrapper {
    width: 48px;
    height: 48px;
  }
  
  .edit-icon,
  .new-icon {
    width: 24px;
    height: 24px;
  }
  
  .form-container {
    padding: 20px 16px;
  }
  
  .edit-title,
  .new-title {
    font-size: 20px;
  }
  
  .edit-description,
  .new-description {
    font-size: 12px;
  }
}
/* Email Detail Page Styles */
.email-detail-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* Header Section */
.email-header {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.email-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px 0;
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
}

.email-icon {
  font-size: 28px;
}

.email-subject {
  flex: 1;
  word-break: break-word;
}

.email-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}

.meta-value {
  font-size: 12px;
  color: #1e293b;
  font-weight: 500;
}

/* Content Sections */
.email-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.content-section {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.section-title {
  background: #f8fafc;
  color: #374151;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.attachment-count {
  font-size: 12px;
  color: #6b7280;
  font-weight: 400;
}

/* Email Body */
.email-body {
  padding: 20px;
  font-size: 12px;
  line-height: 1.7;
  color: #374151;
  background: #fefefe;
  min-height: 100px;
}

.email-body p {
  margin-bottom: 12px;
}

.email-body p:last-child {
  margin-bottom: 0;
}

/* Attachments */
.attachments-list {
  padding: 20px;
}

.attachment-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  border: 1px solid #e2e8f0;
  margin-bottom: 8px;
}

.attachment-item:last-child {
  margin-bottom: 0;
}

.attachment-item:hover {
  background-color: #f8fafc;
}

.attachment-icon {
  font-size: 18px;
  color: #6b7280;
}

.attachment-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.attachment-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  font-size: 12px;
}

.attachment-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.file-size {
  font-size: 12px;
  color: #6b7280;
}

/* Related Order */
.related-order {
  padding: 20px;
}

.order-link {
  display: inline-block;
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
}

.order-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.order-info {
  color: #6b7280;
  font-size: 12px;
}

.order-vendor {
  color: #9ca3af;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  margin-top: 32px;
  padding: 20px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

/* Responsive Design */
@media (max-width: 768px) {
  .email-detail-container {
    padding: 16px;
  }
  
  .email-header {
    padding: 20px 16px;
  }
  
  .email-title {
    font-size: 20px;
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .email-meta {
    grid-template-columns: 1fr;
  }
  
  .meta-item {
    justify-content: center;
  }
  
  .section-title {
    padding: 12px 16px;
    font-size: 12px;
  }
  
  .email-body,
  .attachments-list,
  .related-order {
    padding: 16px;
  }
  
  .action-buttons {
    flex-direction: column;
  }
}
/* Manual page specific styles */
.manual-container {
  max-width: 1000px;
  margin: 0 auto;
}

.manual-nav {
  background-color: #f8f9fa;
  padding: 20px 40px;
  border-radius: 8px;
  margin-bottom: 40px;
  border: 1px solid #e9ecef;
}

.manual-nav h2 {
  font-size: 1.2em;
  margin-bottom: 15px;
  color: #495057;
}

.manual-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.manual-nav li {
  margin-bottom: 0;
}

.manual-nav a {
  color: #667eea;
  text-decoration: none;
  padding: 4px 12px;
  display: block;
  border-radius: 4px;
  transition: all 0.2s;
}

.manual-nav a:hover {
  background-color: #667eea;
  color: white;
}

.manual-section {
  margin-bottom: 60px;
  scroll-margin-top: 150px;
}

.manual-section h2 {
  font-size: 2em;
  color: #667eea;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #667eea;
}

.manual-section h3 {
  font-size: 1.5em;
  color: #764ba2;
  margin-top: 30px;
  margin-bottom: 15px;
}

.manual-section h4 {
  font-size: 1.2em;
  color: #495057;
  margin-top: 20px;
  margin-bottom: 10px;
}

.manual-section p {
  margin-bottom: 15px;
}

.manual-section ol,
.manual-section ul {
  margin-left: 30px;
  margin-bottom: 15px;
}

.manual-section li {
  margin-bottom: 8px;
}

.info-box {
  background-color: #e7f3ff;
  border-left: 4px solid #2196F3;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 4px;
}

.info-box a {
  color: #0056b3;
  font-weight: bold;
  text-decoration: underline;
}

.info-box a:hover {
  color: #003d82;
  text-decoration: none;
}

.warning-box {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 4px;
}

.tip-box {
  background-color: #d4edda;
  border-left: 4px solid #28a745;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 4px;
}

.screenshot {
  margin: 20px 0;
  text-align: center;
}

.screenshot img {
  max-width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.screenshot p {
  margin-top: 10px;
  font-size: 0.9em;
  color: #666;
  font-style: italic;
}

.manual-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.manual-section th,
.manual-section td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.manual-section th {
  background-color: #667eea;
  color: white;
}

.manual-section tr:nth-child(even) {
  background-color: #f8f9fa;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: bold;
  margin-left: 10px;
}

.badge-admin {
  background-color: #764ba2;
  color: white;
}

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

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #667eea;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: all 0.3s;
  font-size: 20px;
  font-weight: bold;
}

.back-to-top:hover {
  background-color: #764ba2;
  transform: translateY(-5px);
}

.back-to-top.show {
  display: flex;
}
/* Order Detail Page Styles */
.order-detail-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

/* Header Section */
.order-header {
  margin-bottom: 32px;
  padding: 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.order-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
}

.order-number {
  color: #374151;
}

.order-status-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.order-status-badge.pending {
  background-color: #f3f4f6;
  color: #6b7280;
  border: 2px solid #d1d5db;
}

.order-status-badge.delivered {
  background-color: #fce4ec;
  color: #ec4899;
  border: 2px solid #f8bbd9;
}

.order-status-badge.completed {
  background-color: #f3f4f6;
  color: #374151;
  border: 2px solid #9ca3af;
}

.order-status-badge.supplied {
  background-color: #dbeafe;
  color: #2563eb;
  border: 2px solid #93c5fd;
}

/* Content Sections */
.order-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.section-title {
  background: #f9fafb;
  color: #374151;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0;
  padding: 20px;
}

.info-item {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.info-item:hover {
  background-color: #f9fafb;
}

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

.info-item label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.info-item span {
  font-size: 12px;
  color: #374151;
  font-weight: 500;
}

.text-content {
  font-size: 12px;
  color: #374151;
  line-height: 1.6;
  white-space: pre-wrap;
  background: #f9fafb;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

/* Status indicators */
.status-completed {
  color: #059669 !important;
  font-weight: 600;
}

.status-pending {
  color: #9ca3af !important;
  font-style: italic;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  margin-top: 32px;
  padding: 20px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.btn-danger {
  background-color: #dc2626;
  border-color: #dc2626;
  color: white !important;
}

.btn-danger:hover {
  background-color: #b91c1c;
  border-color: #b91c1c;
  color: white !important;
  text-decoration: none;
}

.btn-secondary {
  background-color: #6b7280;
  border-color: #6b7280;
  color: white;
}

.btn-secondary:hover {
  background-color: #4b5563;
  border-color: #4b5563;
  color: white;
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .order-detail-container {
    padding: 16px;
  }
  
  .order-title {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .order-header {
    padding: 20px 16px;
  }
  
  .section-title {
    padding: 12px 16px;
    font-size: 16px;
  }
}
/* Order Search & Filter Styles */
.search-filter-container {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* Search Content */
.search-filter-content {
  display: block;
}

/* Year Selector Section */
.year-selector-section {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 24px;
}

.year-selector-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.year-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
}

.year-select {
  padding: 8px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 12px;
  color: #374151;
  background: white;
  min-width: 80px;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 8px center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  padding-right: 32px;
}

.year-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.year-select:hover {
  border-color: #9ca3af;
}

/* Form Section */
.search-filter-form {
  padding: 8px 20px;
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Filter Grid */
.filter-grid {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) minmax(75px, 0.8fr) minmax(75px, 0.8fr) minmax(75px, 0.8fr) minmax(100px, 1fr) auto;
  gap: 6px;
  align-items: end;
}

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

/* Field Headers */
.field-header {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
}

.field-icon {
  width: 14px;
  height: 14px;
  color: #6b7280;
  flex-shrink: 0;
}

.field-label {
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  margin: 0;
  white-space: nowrap;
}

/* Form Inputs */
.field-wrapper {
  position: relative;
}

.search-input,
.search-select {
  width: 100%;
  padding: 8px 10px;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  color: #374151;
  background: #ffffff;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.search-input:focus,
.search-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-input::placeholder {
  color: #9ca3af;
  font-size: 11px;
}

/* Select Styling */
.search-select {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  padding-right: 40px;
}

.search-select:hover {
  border-color: #9ca3af;
}

/* Field Width Variations */
.search-input.wide {
  min-width: 150px;
}

.search-select.narrow {
  min-width: 80px;
}

.search-select.medium {
  min-width: 110px;
}

/* Search Actions */
.search-actions {
  display: flex;
  align-items: end;
  gap: 0;
  padding-top: 0;
  border-top: none;
  flex-wrap: wrap;
}

.search-button {
  background: #3b82f6;
  color: white;
  border: 2px solid #3b82f6;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 70px;
  justify-content: center;
  height: 35px;
  white-space: nowrap;
}

.search-button:hover {
  background: #2563eb;
  border-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.search-button:active {
  transform: translateY(0);
}

/* Search Hint */
.search-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

.hint-icon {
  width: 16px;
  height: 16px;
  color: #9ca3af;
  flex-shrink: 0;
}

.search-hint span {
  line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
  .search-filter-container {
    margin-bottom: 20px;
  }

  .year-selector-inline {
    justify-content: center;
    width: 100%;
  }

  .search-filter-form {
    padding: 8px 16px;
  }

  .filter-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .search-actions {
    justify-content: center;
    margin-top: 12px;
  }

  .search-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .search-filter-form {
    padding: 8px 12px;
  }

  .search-input,
  .search-select {
    padding: 10px 14px;
    font-size: 12px;
  }

  .year-select {
    min-width: 70px;
    padding: 6px 10px;
    font-size: 13px;
  }
}
/* Order Status Legend Styles */
.order-status-legend {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px;
  margin: 10px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.status-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  flex-shrink: 0;
}

/* Hover effects removed as requested */

.status-indicator {
  width: 16px;
  height: 16px;
  border: 2px solid #000;
  margin-right: 12px;
  border-radius: 3px;
  display: inline-block;
  flex-shrink: 0;
}

.status-pending {
  background: transparent;
  border-color: #6b7280;
}

.status-attention {
  background: #fce4ec;
  border-color: #ec4899;
  animation: pulse-attention 2s infinite;
}

.status-completed {
  background: #d1d5db;
  border-color: #6b7280;
}

.status-text {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.status-pending-text {
  color: #374151;
}

.status-attention-text {
  color: #dc2626;
  font-weight: 600;
}

.status-completed-text {
  color: #6b7280;
}

/* Pulse animation for attention status */
@keyframes pulse-attention {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(236, 72, 153, 0);
  }
}

/* Responsive design */
@media (max-width: 640px) {
  .order-status-legend {
    padding: 8px;
    margin: 15px 0;
    flex-direction: column;
    gap: 12px;
  }
  
  .status-item {
    padding: 6px 10px;
    width: 100%;
  }
  
  .status-indicator {
    width: 14px;
    height: 14px;
    margin-right: 10px;
  }
  
  .status-text {
    font-size: 12px;
  }
}
/* Vendor Summary Page Styles */
.vendor-summary-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header Section */
.vendor-header {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.vendor-icon {
  width: 20px;
  height: 20px;
  color: #0369a1;
}

.vendor-title h1 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.vendor-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.current-month {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  background: rgba(59, 130, 246, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
}

.limit-info {
  font-size: 11px;
  color: #64748b;
}

.limit-amount {
  font-weight: 700;
  color: #dc2626;
  font-size: 12px;
}

/* Content Sections */
.vendor-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.category-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.category-header {
  background: #f8fafc;
  padding: 10px 16px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.1);
}

.category-icon {
  width: 18px;
  height: 18px;
  color: #2563eb;
}

.category-title {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin: 0;
}

/* Table Styles */
.vendor-table-container {
  overflow-x: auto;
}

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

.vendor-table-header {
  background: #f9fafb;
}

.vendor-table-header th {
  padding: 16px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e5e7eb;
}

.vendor-column {
  width: 40%;
}

.amount-column {
  width: 60%;
}

.vendor-table-body tr {
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s ease;
}

.vendor-row:hover {
  background-color: #f9fafb;
}

.vendor-row.over-limit {
  background-color: #fef2f2;
}

.vendor-row.over-limit:hover {
  background-color: #fee2e2;
}

.vendor-name {
  padding: 16px 20px;
}

.vendor-name-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vendor-icon-small {
  width: 18px;
  height: 18px;
  color: #6b7280;
  flex-shrink: 0;
}

.vendor-name-wrapper span {
  font-size: 12px;
  font-weight: 500;
  color: #374151;
}

.amount-value {
  padding: 16px 20px;
}

.amount-wrapper {
  display: flex;
  justify-content: flex-start;
}

.amount {
  display: flex;
  align-items: center;
  gap: 8px;
}

.normal-amount .amount-text {
  font-size: 16px;
  font-weight: 600;
  color: #059669;
}

.over-limit-amount {
  padding: 8px 12px;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  animation: pulse-warning 2s infinite;
}

.over-limit-amount .amount-text {
  font-size: 16px;
  font-weight: 700;
  color: #dc2626;
}

.warning-icon {
  width: 18px;
  height: 18px;
  color: #dc2626;
  flex-shrink: 0;
}

.tax-label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 400;
}

.over-limit-amount .tax-label {
  color: #991b1b;
}

/* No data state */
.no-data-row {
  background-color: #f9fafb;
}

.no-data {
  padding: 32px 20px;
  text-align: center;
}

.no-data-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #9ca3af;
}

.no-data-icon {
  width: 20px;
  height: 20px;
}

/* Pulse animation for over-limit amounts */
@keyframes pulse-warning {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(220, 38, 38, 0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .vendor-summary-container {
    padding: 16px;
  }
  
  .vendor-header {
    padding: 20px 16px;
  }
  
  .vendor-title {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .vendor-title h1 {
    font-size: 24px;
  }
  
  .vendor-meta {
    justify-content: center;
    gap: 16px;
  }
  
  .category-header {
    padding: 16px 20px;
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .category-title {
    font-size: 18px;
  }
  
  .vendor-table-header th {
    padding: 12px 16px;
    font-size: 11px;
  }
  
  .vendor-name,
  .amount-value {
    padding: 12px 16px;
  }
  
  .vendor-name-wrapper {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  
  .amount {
    flex-direction: column;
    gap: 4px;
  }
  
  .over-limit-amount {
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .vendor-table-header th {
    padding: 10px 12px;
  }
  
  .vendor-name,
  .amount-value {
    padding: 10px 12px;
  }
  
  .vendor-column {
    width: 35%;
  }
  
  .amount-column {
    width: 65%;
  }
}
.year-selector {
  float: right;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.year-selector label {
  white-space: nowrap;
}

.year-selector select {
  min-width: 80px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 8px center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  padding-right: 32px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.year-selector select:hover {
  border-color: #9ca3af;
}

/* Responsive design */
@media (max-width: 640px) {
  .year-selector {
    float: none;
    justify-content: flex-start;
    margin-bottom: 12px;
  }
  
  .year-selector select {
    min-width: 70px;
    font-size: 13px;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* Legacy styles and Tailwind supplements */

/* Development environment indicator */
.dev {
  border-top: 3px solid #ef4444; /* red-500 equivalent */
}

/* Table styles that work well with Tailwind */
table {
  @apply w-full border-collapse mt-6;
}

th, td {
  @apply px-4 py-3 text-left border-b border-gray-200;
}

th {
  @apply bg-gray-100 font-semibold text-gray-700;
}

tr:hover {
  @apply bg-gray-50;
}

/* Form styles using Tailwind */
.field {
  @apply mb-4;
}

.field label {
  @apply block mb-2 font-medium text-gray-700;
}

.field input, .field textarea, .field select {
  @apply w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500;
}

.actions {
  @apply mt-6;
}

/* Button styles */
.btn {
  @apply inline-flex items-center px-4 py-2 border font-medium rounded-md text-sm transition-colors duration-200;
}

.btn-primary {
  @apply bg-blue-600 text-white border-blue-600 hover:bg-blue-700 hover:border-blue-700;
}

.btn-secondary {
  @apply bg-gray-600 text-white border-gray-600 hover:bg-gray-700 hover:border-gray-700;
}

.btn-danger {
  @apply bg-red-600 text-white border-red-600 hover:bg-red-700 hover:border-red-700;
}

/* Input submit button styles */
input[type="submit"], button[type="submit"] {
  @apply cursor-pointer;
}

input[type="submit"].button, button[type="submit"].button {
  @apply inline-flex items-center justify-center px-4 py-2 border border-transparent font-medium rounded-md transition-colors duration-200;
}

/* Custom utility classes */
.link-primary {
  @apply text-blue-600 hover:text-blue-800 transition-colors;
}

.link-danger {
  @apply text-red-600 hover:text-red-800 transition-colors;
}
