.oil-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.oil-form-grid label { display: grid; gap: 7px; min-width: 0; }
.oil-form-grid input, .oil-form-grid select { min-width: 0; width: 100%; }
.oil-form-grid .oil-next-mileage { grid-column: 1 / -1; }
.modal-form .oil-filter-choice { display: flex; align-items: center; gap: 10px; }
.modal-form .oil-filter-choice input, .oil-recheck-options input {
  width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  flex: 0 0 20px;
  margin: 0;
}
.oil-recheck-options { border: 0; padding: 0; margin: 2px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.oil-recheck-options legend { margin-bottom: 9px; font-weight: 600; }
.oil-recheck-options label { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.oil-check-summary { border-left: 3px solid #238466; padding: 10px 14px; background: #f0f7f4; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.oil-schedule-table td small, #oilHistoryBody td small { display: block; margin-top: 5px; color: #657379; white-space: normal; overflow-wrap: anywhere; }
.oil-schedule-table td strong { display: block; }
.oil-schedule-table td small.oil-mileage-warning { color: #98521c; font-weight: 600; }
.oil-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.oil-schedule-table .oil-row-actions .btn { white-space: normal; }
.oil-row-actions .btn svg { width: 16px; height: 16px; flex: 0 0 16px; }
.oil-schedule-table { width: 100%; }
.oil-schedule-table td { vertical-align: top; }
#oilFleetBody .tag { max-width: 100%; white-space: normal; }
#oilHistoryBody .icon-btn, #oilCheckModal .modal-header .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border: 1px solid #d5dde1;
  border-radius: 6px;
  background: #fff;
  color: #34434a;
  cursor: pointer;
}
#oilHistoryBody .icon-btn svg, #oilCheckModal .modal-header .icon-btn svg { width: 17px; height: 17px; }
#oilHistoryBody .icon-btn.danger { color: #ac3c34; }
@media (max-width: 640px) {
  .oil-form-grid { grid-template-columns: minmax(0, 1fr); }
  .oil-form-grid .oil-next-mileage { grid-column: auto; }
  .oil-row-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .oil-row-actions .btn { min-height: 44px; margin: 0; }
  #logOilChangeModal, #oilCheckModal { max-width: calc(100vw - 24px); }
  body.admin-shell [data-view="oil-tracker"] .stat-grid.four { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 1px; }
  body.admin-shell [data-view="oil-tracker"] .stat-grid.four .stat-card { padding: 14px; min-height: 94px; grid-column: auto !important; width: auto !important; }
  [data-view="oil-tracker"] .stat-grid.four .stat-card h2 { margin: 5px 0; }
  [data-view="oil-tracker"] .stat-grid.four .stat-card span { font-size: 11px; line-height: 1.4; }
  #oilHistoryBody .oil-row-actions { display: flex; justify-content: flex-end; }
  #oilFleetBody td::before { width: 42%; min-width: 0; flex: 0 0 42%; }
  #oilFleetBody td > .oil-cell-value { min-width: 0; flex: 1; }
  #oilFleetBody td > .oil-cell-value small { display: block; }
  .oil-row-actions .btn { padding: 8px; gap: 4px; }
}
@media (max-width: 360px) { #oilFleetBody .oil-row-actions { grid-template-columns: minmax(0, 1fr); } }
