.trip-show-container { 
  max-width: 960px; 
  margin: 0 auto; 
  padding: 20px 12px; 
  margin-top: 80px; 
}

.trip-show-card { 
  background: #ffffff; 
  border: 1px solid #e5e7eb; 
  border-radius: 12px; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.06); 
  padding: 24px; 
}

.trip-show-header { 
  margin: 0 0 16px 0; 
}

.trip-show-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.trip-show-title-row h2 {
  margin: 0;
}

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

.trip-show-status-form {
  margin: 0;
}

.trip-show-status-select {
  padding: 8px 32px 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: #374151;
  background-color: white;
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.trip-show-status-select:hover {
  border-color: #9ca3af;
}

.trip-show-status-select:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.trip-show-btn-edit {
  background: #10b981;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.trip-show-btn-edit:hover {
  background: #059669;
}

.trip-show-assigned { 
  color: #10b981; 
  font-weight: 600; 
  display: flex; 
  align-items: center; 
  gap: 6px; 
  margin-top: 8px; 
}

.trip-show-details { 
  border: 0; 
  padding: 0; 
  margin-bottom: 16px; 
  display: grid; 
  gap: 12px; 
}

.trip-show-route { 
  display: flex; 
  align-items: center; 
  gap: 6px; 
}

.trip-show-weight-price { 
  display: flex; 
  gap: 16px; 
}

.trip-show-requirements {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.trip-show-requirements h3 {
  margin: 0 0 12px 0;
}

.trip-show-requirements-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trip-show-requirement-item {
  color: #374151;
}

.trip-show-applicants-header { 
  margin: 24px 0 16px 0; 
  padding-top: 16px; 
  border-top: 1px solid #e5e7eb; 
}

.trip-show-applicants-list { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
}

.trip-show-applicant { 
  border: 1px solid #e5e7eb; 
  border-radius: 8px; 
  padding: 12px; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  background: #f9fafb; 
}

.trip-show-applicant-main { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
}

.trip-show-applicant-meta {
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
}

.trip-show-assigned-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trip-show-badge-assigned { 
  background: #e0f2f1; 
  color: #065f46;
  border-radius: 6px; 
  padding: 6px 10px; 
  font-weight: 600; 
}

.trip-show-btn-unassign {
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.trip-show-btn-unassign:hover {
  background: #dc2626;
}

.trip-show-btn-assign { 
  background: #2563eb; 
  color: white; 
  border: none; 
  border-radius: 6px; 
  padding: 8px 12px; 
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer; 
}

.trip-show-btn-assign:hover { 
  background: #1e40af; 
}

.trip-show-btn-assign-disabled {
  background: #9ca3af;
  color: #d1d5db;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: not-allowed;
  opacity: 0.6;
}

.trip-show-empty {
  text-align: center;
  color: #6b7280;
  padding: 20px;
}

/* Status Badge */
.trip-show-status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.trip-show-status-badge.status-published {
  background: #dbeafe;
  color: #1d4ed8;
}

.trip-show-status-badge.status-assigned {
  background: #fef3c7;
  color: #b45309;
}

.trip-show-status-badge.status-loaded {
  background: #e0e7ff;
  color: #4338ca;
}

.trip-show-status-badge.status-unloaded {
  background: #d1fae5;
  color: #065f46;
}

/* Carrier Info Card */
.trip-show-carrier-info {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.trip-show-carrier-info h3 {
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #111827;
}

.carrier-info-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
}

.carrier-info-basic {
  display: grid;
  gap: 12px;
}

.carrier-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carrier-info-row strong {
  color: #6b7280;
  min-width: 100px;
}

.whatsapp-link {
  color: #25d366;
  font-size: 1.2rem;
  margin-left: 8px;
  text-decoration: none;
}

.whatsapp-link:hover {
  color: #128c7e;
}

/* Vehicle Info Section */
.vehicle-info-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed #d1d5db;
}

.vehicle-info-section h4 {
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #374151;
}

/* Vehicle Documents */
.vehicle-documents-section {
  margin-top: 16px;
}

.vehicle-documents-section h5 {
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 0.9rem;
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.document-item {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.document-name {
  font-weight: 600;
  color: #374151;
}

.document-status {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
  width: fit-content;
}

.document-status.status-validated,
.document-status.status-aprobado {
  background: #d1fae5;
  color: #065f46;
}

.document-status.status-pending {
  background: #fef3c7;
  color: #b45309;
}

.document-status.status-rejected,
.document-status.status-rechazado {
  background: #fee2e2;
  color: #991b1b;
}

.document-status.status-missing {
  background: #f3f4f6;
  color: #6b7280;
}

.document-expiry {
  font-size: 0.75rem;
  color: #6b7280;
}

.document-expiry.expired {
  color: #dc2626;
  font-weight: 600;
}

/* Trip Status Actions */
.trip-status-actions {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.status-action-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.status-info {
  color: #6b7280;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-confirm-load {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-confirm-load:hover {
  background: #1d4ed8;
}

.btn-confirm-unload {
  background: #10b981;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-confirm-unload:hover {
  background: #059669;
}

.btn-unassign {
  background: transparent;
  color: #dc2626;
  border: 1px solid #dc2626;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-unassign:hover {
  background: #dc2626;
  color: white;
}

.status-completed {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #10b981;
  font-weight: 600;
  font-size: 1.1rem;
}

.status-completed i {
  font-size: 1.4rem;
}

/* Applicant Vehicle Info */
.applicant-vehicle {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4b5563;
  font-size: 0.9rem;
  margin-left: 12px;
}

.applicant-vehicle-occupied {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #dc2626;
  font-size: 0.82rem;
  font-weight: 500;
  background: #fef2f2;
  padding: 3px 10px;
  border-radius: 6px;
  margin-left: 12px;
}

.applicant-vehicle-available {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #16a34a;
  font-size: 0.82rem;
  font-weight: 500;
  margin-left: 12px;
}

.document-view-link {
  color: #2563eb;
  font-size: 0.8rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.document-view-link:hover {
  text-decoration: underline;
}

.trip-show-rating {
  color: #f59e0b;
  font-weight: 500;
}

/* Distance Section */
.trip-show-distance {
  display: flex;
  gap: 20px;
  color: #4b5563;
  padding: 8px 0;
}

.trip-show-distance i {
  color: #6b7280;
  margin-right: 4px;
}

/* Advances Section */
.trip-show-advances {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.trip-show-advances > strong {
  color: #374151;
}

.advances-badges {
  display: flex;
  gap: 8px;
}

.advance-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.advance-badge.advance-fuel {
  background: #fef3c7;
  color: #b45309;
}

.advance-badge.advance-cash {
  background: #d1fae5;
  color: #065f46;
}

/* Expiration Section */
.trip-show-expiration {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #f3f4f6;
  margin-top: 8px;
}

.trip-show-expiration.expired {
  background: #fee2e2;
}

.trip-show-expiration.near-expiration {
  background: #fef3c7;
}

.expiration-warning {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.trip-show-expiration.expired .expiration-warning {
  color: #dc2626;
}

.trip-show-expiration.near-expiration .expiration-warning {
  color: #b45309;
}

.btn-renew {
  background: #8b5cf6;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-renew:hover {
  background: #7c3aed;
}
