/* Comptabilité View Styles */

/* Groups Section */
.groups-grid {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-gray-300) transparent;
}

.groups-grid::-webkit-scrollbar {
  height: 2px;
}

.groups-grid::-webkit-scrollbar-track {
  background: transparent;
}

.groups-grid::-webkit-scrollbar-thumb {
  background-color: var(--color-gray-300);
  border-radius: 1px;
}

.group-card {
  min-width: 120px;
  flex-shrink: 0;
  scroll-snap-align: start;
  background: white;
  border-radius: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--color-gray-200);
  transition: all 0.2s ease;
  cursor: pointer;
}

.group-card.selected {
  background: white;
  color: var(--color-gray-900);
  border: 2px solid var(--color-primary);
}

.group-card.selected .stat-label,
.group-card.selected .stat-value,
.group-card.selected .stat-item i {
  color: var(--color-gray-900);
}

/* Motif Filters */
.motif-filters {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.filters-header h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin: 0;
}

.btn-clear-filters {
  padding: 0.5rem 1rem;
  background: white;
  color: var(--color-gray-600);
  border: 2px solid var(--color-gray-200);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-clear-filters:hover {
  background: white;
  color: var(--color-error);
  border-color: var(--color-error);
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.filters-grid .filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filters-grid .filter-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gray-700);
}

.filters-grid .filter-group input {
  padding: 0.75rem;
  border: 1px solid var(--color-gray-200);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.filters-grid .filter-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(179, 27, 31, 0.1);
}

.filters-grid .filter-group input::placeholder {
  color: var(--color-gray-400);
  font-size: 0.8rem;
}

/* Device Selection */
.device-selection {
  background: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.device-selection.collapsed {
  padding: 1rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-field {
  position: relative;
  width: 250px;
}

.search-field i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gray-400);
}

.search-field input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2rem;
  border: 1px solid var(--color-gray-200);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.search-field input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
  outline: none;
}

.btn-collapse {
  background: white;
  border: 2px solid var(--color-gray-200);
  color: var(--color-gray-500);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.btn-collapse:hover {
  background: white;
  color: var(--color-gray-700);
  border-color: var(--color-gray-300);
}

.selection-content {
  transition: all 0.3s ease;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 1rem;
}

.device-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.btn-action {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--color-gray-200);
  border-radius: 0.5rem;
  background: white;
  color: var(--color-gray-700);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-action:hover {
  background: white;
  border-color: var(--color-gray-300);
}

.devices-grid {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-gray-300) transparent;
}

.device-chip {
  padding: 0.3rem 0.3rem;
  border: 1px solid var(--color-gray-200);
  border-radius: 0.5rem;
  background: white;
  color: var(--color-gray-700);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.device-chip:hover {
  background: white;
  border-color: var(--color-gray-300);
}

.device-chip.selected {
  background: white;
  color: var(--color-gray-900);
  border: 2px solid var(--color-primary);
}

.device-chip i {
  font-size: 1rem;
  margin-right: 0.25rem;
}

/* No Vehicle Message */
.no-vehicle-message {
  background: white;
  padding: 2rem;
  border-radius: 0.75rem;
  text-align: center;
  color: var(--color-gray-600);
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.no-vehicle-message i {
  font-size: 3rem;
  color: var(--color-warning);
  margin-bottom: 1rem;
}

.no-vehicle-message p {
  font-size: 1.125rem;
}

/* Filters */
.filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
}

.filter-group {
  position: relative;
  flex: 1;
}

.filter-group i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gray-400);
}

.filter-group input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid var(--color-gray-200);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-gray-700);
  background-color: white;
}

.export-button {
  padding: 0.75rem 1.5rem;
  background: white;
  border: 2px solid var(--color-gray-200);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-gray-700);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.export-button:hover {
  background: white;
  border-color: var(--color-gray-300);
}

/* Tab Menu */
.tab-menu {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab-button {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--color-gray-200);
  background: white;
  color: var(--color-gray-600);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  border-radius: 0.5rem;
}

.tab-button:hover {
  background: white;
  color: var(--color-gray-900);
  border-color: var(--color-gray-300);
}

.tab-button.active {
  background: white;
  color: var(--color-gray-900);
  border: 2px solid var(--color-primary);
}

.tab-button i {
  font-size: 1rem;
}

/* Consumption Table */
.consumption-table {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 2rem;
}

.table-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 2fr 1fr;
  padding: 1rem 1.5rem;
  background-color: var(--color-gray-50);
  border-bottom: 1px solid var(--color-gray-200);
}

.header-cell {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-gray-500);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.day-group {
  border-bottom: 2px solid var(--color-gray-100);
}

.day-group:last-child {
  border-bottom: none;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 2fr 1fr;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-gray-200);
  transition: all 0.2s ease;
}

.table-row:last-child {
  border-bottom: none;
}

.table-row:hover {
  background-color: var(--color-gray-50);
}

.table-row.first-of-day {
  background-color: rgba(179, 27, 31, 0.05);
  font-weight: 500;
}

.cell {
  font-size: 0.875rem;
  color: var(--color-gray-700);
  display: flex;
  align-items: center;
}

.cell.amount {
  font-weight: 600;
}

.cell.amount.positive {
  color: var(--color-success);
}

.cell.amount.negative {
  color: var(--color-error);
}

.motif-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: var(--color-primary);
  color: white;
}

.transaction-count {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: var(--color-gray-100);
  color: var(--color-gray-700);
}

.devices-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.device-tag {
  font-size: 0.75rem;
  color: var(--color-gray-600);
  background-color: var(--color-gray-100);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}

.day-total {
  font-size: 1rem;
  font-weight: 700;
}

.day-total.positive {
  color: var(--color-success);
}

.day-total.negative {
  color: var(--color-error);
}

/* Journal Table */
.journal-table {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 2rem;
}

.journal-table .table-header {
  display: grid;
  grid-template-columns: 80px 150px 150px 150px 150px 2fr 150px 1fr 120px 100px;
  padding: 1rem 1.5rem;
  background-color: var(--color-gray-50);
  border-bottom: 1px solid var(--color-gray-200);
}

.journal-table .table-row {
  display: grid;
  grid-template-columns: 80px 150px 150px 150px 150px 2fr 150px 1fr 120px 100px;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-gray-200);
  transition: all 0.2s ease;
}

.journal-table .table-row:last-child {
  border-bottom: none;
}

.journal-table .table-row:hover {
  background-color: var(--color-gray-50);
}

.motif-text {
  font-size: 0.875rem;
  color: var(--color-gray-700);
  word-break: break-word;
}

.counterparty-info {
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.counterparty-info small {
  font-size: 0.75rem;
  color: var(--color-gray-500);
  font-style: italic;
}

.counterparty-contact {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.contact-name {
  font-size: 0.75rem;
  color: var(--color-gray-700);
  font-weight: 500;
}

.contact-phone {
  font-size: 0.75rem;
  color: var(--color-primary);
  font-family: monospace;
}

.no-contact {
  font-size: 0.75rem;
  color: var(--color-gray-400);
  font-style: italic;
}

.device-name {
  font-size: 0.875rem;
  color: var(--color-gray-700);
  font-weight: 500;
}

.type-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.type-badge.type-1 {
  background-color: rgba(0, 166, 81, 0.1);
  color: var(--color-success);
}

.type-badge.type-other {
  background-color: rgba(179, 27, 31, 0.1);
  color: var(--color-error);
}

.export-button {
  padding: 0.5rem 1rem;
  background: white;
  border: 2px solid var(--color-primary);
  border-radius: 0.375rem;
  font-size: 0.75rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.export-button:hover {
  background: white;
  color: var(--color-primary);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .filters {
    flex-direction: column;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .export-button {
    width: 100%;
    justify-content: center;
  }
  
  .table-header {
    display: none;
  }
  
  .table-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1rem;
  }
  
  .cell {
    padding: 0.25rem 0;
  }
  
  .cell:before {
    content: attr(data-label);
    font-weight: 600;
    margin-right: 0.5rem;
    color: var(--color-gray-500);
  }

  .journal-table .table-header {
    display: none;
  }
  
  .journal-table .table-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1rem;
  }

  .conso-par-cle-table .table-header {
    display: none;
  }
  
  .conso-par-cle-table .table-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1rem;
  }

  .filters-grid {
    grid-template-columns: 1fr;
  }
}
/* Conso par Clé Table */
.conso-par-cle-table {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 2rem;
}

.conso-par-cle-table .table-header {
  display: grid;
  grid-template-columns: 100px 150px 1fr 1fr 1fr 1fr 1fr 120px;
  padding: 1rem 1.5rem;
  background-color: var(--color-gray-50);
  border-bottom: 1px solid var(--color-gray-200);
}

.conso-par-cle-table .table-row {
  display: grid;
  grid-template-columns: 100px 150px 1fr 1fr 1fr 1fr 1fr 120px;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-gray-200);
  transition: all 0.2s ease;
}

.conso-par-cle-table .table-row:last-child {
  border-bottom: none;
}

.conso-par-cle-table .table-row:hover {
  background-color: var(--color-gray-50);
}

.total-cell {
  font-weight: 700;
  font-size: 0.9rem;
}

/* Motif cell styles */
.motif-cell {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.motif-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  width: 100%;
}

.motif-value {
  font-size: 0.75rem;
  color: var(--color-gray-500);
  font-weight: 500;
  background-color: var(--color-gray-100);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  align-self: flex-start;
}
.motif-label {
  font-size: 0.75rem;
  color: var(--color-gray-500);
  font-weight: 500;
  background-color: var(--color-gray-100);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  align-self: flex-start;
}
.motif-amount {
  font-size: 0.875rem;
  font-weight: 600;
}

.total-row {
  background-color: var(--color-gray-50);
  border-top: 2px solid var(--color-primary);
  font-weight: 600;
}

.total-row .cell {
  font-weight: 600;
}

.header-cell small {
  font-size: 0.65rem;
  color: var(--color-gray-400);
  font-weight: 400;
  display: block;
  margin-top: 0.125rem;
}

/* Chauffeur Tab Styles */
.chauffeur-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 1.5rem;
  height: calc(100vh - 300px);
}

.drivers-panel {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid var(--color-gray-200);
}

.panel-header {
  padding: 1rem;
  background: var(--color-gray-50);
  border-bottom: 1px solid var(--color-gray-200);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.panel-header h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin: 0;
}

.panel-header .search-field {
  width: 100%;
}

.panel-header .search-field input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2rem;
  border: 1px solid var(--color-gray-200);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: var(--color-gray-700);
  background-color: white;
}

.panel-header .search-field input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(179, 27, 31, 0.1);
}

.drivers-stats {
  display: flex;
  gap: 1rem;
}

.drivers-stats .stat-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--color-gray-600);
}

.drivers-stats .stat-item i {
  color: var(--color-primary);
}

.drivers-list {
  max-height: calc(100vh - 400px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-gray-300) transparent;
}

.drivers-list::-webkit-scrollbar {
  width: 4px;
}

.drivers-list::-webkit-scrollbar-track {
  background: transparent;
}

.drivers-list::-webkit-scrollbar-thumb {
  background-color: var(--color-gray-300);
  border-radius: 2px;
}

.driver-item {
  padding: 1rem;
  border-bottom: 1px solid var(--color-gray-200);
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.driver-item:hover {
  background: var(--color-gray-50);
}

.driver-item.selected {
  background: rgba(179, 27, 31, 0.1);
  border-left: 4px solid var(--color-primary);
}

.driver-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.driver-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gray-900);
}

.driver-id {
  font-size: 0.75rem;
  color: var(--color-gray-500);
}

.driver-summary {
  display: flex;
  gap: 0.75rem;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--color-gray-600);
}

.summary-item i {
  color: var(--color-gray-400);
}

.driver-details-panel {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid var(--color-gray-200);
}

.no-driver-selected {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: var(--color-gray-400);
  text-align: center;
}

.no-driver-selected i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.no-driver-selected p {
  font-size: 1.125rem;
}

.driver-info-header {
  padding: 1.5rem;
  background: var(--color-gray-50);
  border-bottom: 1px solid var(--color-gray-200);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.driver-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.driver-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin: 0 0 0.25rem 0;
}

.driver-info p {
  font-size: 0.875rem;
  color: var(--color-gray-500);
  margin: 0 0 1rem 0;
}

.driver-metrics {
  display: flex;
  gap: 1.5rem;
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.metric-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-gray-900);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--color-gray-500);
}

.driver-sub-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--color-gray-50);
  border-bottom: 1px solid var(--color-gray-200);
}

.driver-tab-button {
  padding: 0.5rem 1rem;
  border: 2px solid var(--color-gray-200);
  background: white;
  color: var(--color-gray-600);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  border-radius: 0.375rem;
}

.driver-tab-button:hover {
  background: white;
  color: var(--color-gray-900);
  border-color: var(--color-gray-300);
}

.driver-tab-button.active {
  background: white;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.driver-filters {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--color-gray-50);
  border-bottom: 1px solid var(--color-gray-200);
  align-items: center;
}

.driver-filters .filter-group {
  position: relative;
  flex: 1;
}

.driver-filters .filter-group i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gray-400);
  font-size: 0.875rem;
}

.driver-filters .filter-group input,
.driver-filters .filter-group select {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2rem;
  border: 1px solid var(--color-gray-200);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: var(--color-gray-700);
  background-color: white;
}

.driver-filters .filter-group select {
  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 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.driver-transactions-table,
.driver-consumption-table {
  background: white;
  overflow: hidden;
}

.driver-transactions-table .table-header,
.driver-consumption-table .table-header {
  display: grid;
  grid-template-columns: 150px 150px 2fr 150px 120px 100px;
  padding: 1rem;
  background-color: var(--color-gray-50);
  border-bottom: 1px solid var(--color-gray-200);
}

.driver-consumption-table .table-header {
  grid-template-columns: 120px 1fr 1fr 1fr 1fr 1fr 120px;
}

.driver-transactions-table .table-row,
.driver-consumption-table .table-row {
  display: grid;
  grid-template-columns: 150px 150px 2fr 150px 120px 100px;
  padding: 1rem;
  border-bottom: 1px solid var(--color-gray-200);
  transition: all 0.2s ease;
}

.driver-consumption-table .table-row {
  grid-template-columns: 120px 1fr 1fr 1fr 1fr 1fr 120px;
}

.driver-transactions-table .table-row:last-child,
.driver-consumption-table .table-row:last-child {
  border-bottom: none;
}

.driver-transactions-table .table-row:hover,
.driver-consumption-table .table-row:hover {
  background-color: var(--color-gray-50);
}

@media (max-width: 1024px) {
  .chauffeur-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .drivers-panel {
    max-height: 300px;
  }
  
  .driver-filters {
    flex-direction: column;
  }
  
  .driver-transactions-table .table-header,
  .driver-transactions-table .table-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .driver-consumption-table .table-header,
  .driver-consumption-table .table-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}
