/* 
 * Vehicle Settings Table Styling
 * Responsive design for both desktop and mobile
 */

/* Base table styling */
.vehicle-settings-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin-bottom: 20px;
  background-color: #fff;
  font-size: 14px;
}

.vehicle-settings-table th,
.vehicle-settings-table td {
  border: 1px solid #aec5c5;
  padding: 8px;
  text-align: center;
  vertical-align: middle;
  line-height: 1.4;
}

/* Header styling */
.vehicle-settings-table thead th {
  background-color: #c4e6e3;
  font-weight: 600;
  color: #333;
}

/* Make the function column left-aligned */
.vehicle-settings-table td:nth-child(2) {
  text-align: left;
}

/* Section header row */
.vehicle-settings-table .section-header td {
  font-weight: bold;
  background-color: #f5f5f5;
  text-align: left;
}

/* Alternating row colors */
.vehicle-settings-table tbody tr:nth-child(even) {
  background-color: #f9fcfc;
}

/* Default settings column */
.vehicle-settings-table td:last-child {
  background-color: #f0f8f6;
}

/* Print button styling */
.print-table-btn {
  background-color: #f0f8f6;
  border: 1px solid #aec5c5;
  border-radius: 4px;
  padding: 6px 12px;
  margin: 10px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #333;
}

.print-table-btn svg {
  margin-right: 6px;
}

.print-table-btn:hover {
  background-color: #c4e6e3;
}

/* Responsive table for mobile */
@media (max-width: 768px) {
  .table-responsive-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    margin-bottom: 15px;
  }
  
  .vehicle-settings-table {
    min-width: 800px; /* Ensure table doesn't shrink too much */
  }
  
  .vehicle-settings-table th,
  .vehicle-settings-table td {
    white-space: nowrap;
    padding: 6px;
    font-size: 13px;
  }
}

/* Print-friendly styling */
@media print {
  .vehicle-settings-table {
    border-collapse: collapse;
    width: 100%;
  }
  
  .vehicle-settings-table th,
  .vehicle-settings-table td {
    border: 1px solid #000;
  }
} 