.expenses-muted {
  color: #8a96a3 !important;
  font-size: 11px;
  font-weight: 850;
}

.fuel-v2-filters {
  grid-template-columns: auto auto auto auto minmax(96px, 0.7fr) minmax(108px, 0.8fr) minmax(106px, 0.72fr) minmax(240px, 1.7fr);
  align-items: end;
  gap: 8px;
}

.fuel-v2-filters .expenses-primary-soft {
  min-height: 34px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.fuel-v2-filters .fuel-v2-add-record-btn {
  padding-inline: 10px;
}

.fuel-v2-filters .fuel-v2-import-btn {
  padding-inline: 8px;
}

.fuel-v2-filters label {
  gap: 4px;
  min-width: 0;
  font-size: 10px;
}

.fuel-v2-filters label select,
.fuel-v2-filters label input {
  height: 34px;
  min-height: 34px;
  font-size: 12px;
}

.fuel-v2-table-wrap {
  max-height: calc(100vh - 330px);
}

.fuel-v2-table {
  min-width: 1510px;
}

.fuel-v2-table thead th {
  background: #007f78 !important;
  border-color: #00635f !important;
  color: #fff !important;
}

.fuel-v2-table tbody tr.fuel-v2-row-fixed td {
  background: #e9f8f6 !important;
}

.fuel-v2-table tbody tr.fuel-v2-row-fixed:hover td {
  background: #d9f1ee !important;
}

.fuel-v2-table tbody tr.fuel-v2-row-review td {
  background: #fffbea !important;
}

.fuel-v2-table tbody tr.fuel-v2-row-review:hover td {
  background: #fff6cf !important;
}

.fuel-v2-date-cell {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 150px;
}

.fuel-v2-date-cell > div {
  min-width: 0;
}

.fuel-v2-row-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  min-width: 17px;
  height: 17px;
  margin-top: 1px;
  padding: 0;
  border: 1px solid #9fd1cc;
  border-radius: 999px;
  background: #f8fbfb;
  color: #00635f;
  cursor: pointer;
  font-size: 7px;
  line-height: 1;
}

.fuel-v2-row-edit-btn:hover {
  border-color: #007f78;
  background: #007f78;
  color: #fff;
}

.fuel-v2-fluid-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.fuel-v2-fluid-value strong {
  flex: 0 1 auto;
}

.fuel-v2-fluid-value small {
  min-width: 0;
  color: #00635f;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fuel-v2-fluid-value em {
  flex: 0 0 auto;
  color: #4b5563;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
}

.fuel-v2-stop-cell {
  max-width: 210px;
}

.fuel-v2-stop-cell strong,
.fuel-v2-stop-cell span {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fuel-v2-pair-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  min-width: 116px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.fuel-v2-pair-cell strong {
  color: #111827;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.15;
}

.fuel-v2-pair-cell span {
  max-width: 150px;
  color: #5f6b76;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fuel-v2-pair-cell:hover strong,
.fuel-v2-pair-cell:hover span {
  color: #007f78;
}

.fuel-v2-odom-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 190px;
}

.fuel-v2-odom-editor {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 130px;
}

.fuel-v2-odom-editor input {
  width: 94px;
  height: 24px;
  padding: 0 7px;
  border: 1px solid #d6dde3;
  border-radius: 6px;
  color: #111827;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
}

.fuel-v2-odom-editor input.is-fixed {
  border-color: #c9ced6;
  background: #eef1f4;
  color: #6b7280;
}

.fuel-v2-odom-editor .expenses-icon-btn {
  width: 24px;
  min-width: 24px;
  height: 24px;
  padding: 0;
  font-size: 10px;
}

.fuel-v2-suggestion-main {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

.fuel-v2-odom-suggestion {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  max-width: 250px;
}

.fuel-v2-odom-suggestion > span:not(.fuel-v2-suggestion-main):not(.fuel-v2-score-chip):not(.fuel-v2-flags) {
  font-size: 10px !important;
  line-height: 1.25;
  color: #5f6b76 !important;
}

.fuel-v2-apply-suggestion {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 11px;
  height: 11px;
  border: 1px solid #9fd1cc;
  border-radius: 999px;
  background: #e9f8f6;
  color: #00635f;
  cursor: pointer;
  font-size: 6px;
  line-height: 1;
  flex: 0 0 11px;
}

.fuel-v2-apply-suggestion:hover {
  background: #007f78;
  border-color: #007f78;
  color: #fff;
}

.fuel-v2-apply-suggestion:disabled {
  cursor: wait;
  opacity: 0.7;
}

.fuel-v2-reset-match {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border: 1px solid #d6dde3;
  border-radius: 999px;
  background: #fff;
  color: #6b7280;
  cursor: pointer;
  font-size: 8px;
  line-height: 1;
  flex: 0 0 15px;
}

.fuel-v2-reset-match:hover {
  border-color: #007f78;
  background: #e9f8f6;
  color: #00635f;
}

.fuel-v2-reset-match:disabled {
  cursor: wait;
  opacity: 0.7;
}

.fuel-v2-score-chip {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  position: relative;
  width: fit-content;
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #eef2f7;
  color: #495057 !important;
  font-size: 9px !important;
  font-weight: 950 !important;
  text-transform: uppercase;
  cursor: help;
}

.fuel-v2-score-chip:hover::after {
  content: attr(data-fuel-v2-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  z-index: 50;
  width: max-content;
  max-width: 280px;
  padding: 7px 9px;
  border-radius: 7px;
  background: #17202a;
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
  font-size: 10px;
  line-height: 1.35;
  text-transform: none;
  white-space: normal;
  pointer-events: none;
}

.fuel-v2-total-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 92px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
}

.fuel-v2-total-cell strong {
  color: #111827;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.15;
}

.fuel-v2-total-cell span {
  color: #00635f;
  font-size: 9px;
  font-weight: 950;
  line-height: 1.15;
}

.fuel-v2-total-cell:hover strong,
.fuel-v2-total-cell:hover span {
  color: #007f78;
}

.fuel-v2-score-chip.high {
  background: #d1e7dd;
  color: #0f5132 !important;
}

.fuel-v2-score-chip.medium {
  background: #fff3cd;
  color: #664d03 !important;
}

.fuel-v2-score-chip.low {
  background: #f8d7da;
  color: #842029 !important;
}

.fuel-v2-flags {
  display: flex !important;
  flex-wrap: wrap;
  gap: 3px;
  max-width: 220px;
}

.fuel-v2-flags b {
  display: inline-flex;
  width: fit-content;
  padding: 2px 6px;
  border-radius: 999px;
  background: #fff3cd;
  color: #664d03;
  font-size: 9px;
  font-weight: 950;
}

.fuel-v2-status {
  display: inline-flex !important;
  width: fit-content;
  margin: 0 !important;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e9f8f6;
  color: #004d4a !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  text-transform: uppercase;
}

.fuel-v2-status.auto {
  background: #d1e7dd;
  color: #0f5132 !important;
}

.fuel-v2-status.manual {
  background: #e9f8f6;
  color: #00635f !important;
}

.fuel-v2-status.suggested {
  background: #fff3cd;
  color: #664d03 !important;
}

.fuel-v2-status.pending {
  background: #eef2f7;
  color: #495057 !important;
}

.fuel-v2-edit-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(17, 24, 39, 0.38);
}

.fuel-v2-edit-modal {
  width: min(440px, calc(100vw - 32px));
  border: 1px solid #b8dad7;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.24);
  overflow: visible;
}

.fuel-v2-fee-modal {
  width: min(360px, calc(100vw - 32px));
}

.fuel-v2-add-modal {
  width: min(860px, calc(100vw - 32px));
}

.fuel-v2-edit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 9px 9px 0 0;
  background: #007f78;
  color: #fff;
}

.fuel-v2-edit-head div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fuel-v2-edit-head strong {
  font-size: 14px;
  font-weight: 950;
}

.fuel-v2-edit-head span {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.fuel-v2-edit-head .expenses-icon-btn {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.fuel-v2-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.fuel-v2-add-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-height: calc(100vh - 210px);
  overflow-y: auto;
}

.fuel-v2-add-grid .span-2 {
  grid-column: span 2;
}

.fuel-v2-add-grid .span-4 {
  grid-column: 1 / -1;
}

.fuel-v2-edit-grid label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0 !important;
  color: #495057;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.fuel-v2-edit-grid select,
.fuel-v2-edit-grid input,
.fuel-v2-edit-grid textarea {
  width: 100%;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid #b8dad7;
  border-radius: 8px;
  background: #f8fbfb;
  color: #111827;
  font-size: 13px;
  font-weight: 850;
}

.fuel-v2-edit-grid select,
.fuel-v2-edit-grid input {
  height: 34px;
}

.fuel-v2-edit-grid textarea {
  min-height: 58px;
  padding-top: 8px;
  resize: vertical;
}

.fuel-v2-edit-hint {
  margin: -4px 14px 12px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}

.fuel-v2-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid #e5eeee;
  background: #f8fbfb;
}

@media (max-width: 980px) {
  .fuel-v2-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fuel-v2-add-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .fuel-v2-filters {
    grid-template-columns: 1fr;
  }

  .fuel-v2-add-grid {
    grid-template-columns: 1fr;
  }

  .fuel-v2-add-grid .span-2,
  .fuel-v2-add-grid .span-4 {
    grid-column: 1;
  }
}
