.tafuel-app {
  --tafuel-primary: #b13535;
  --tafuel-primary-hover: #982d2d;
  --tafuel-primary-soft: #fff4f4;
  --tafuel-text: #172033;
  --tafuel-muted: #647084;
  --tafuel-border: #dfe4eb;
  --tafuel-surface: #fff;
  --tafuel-surface-soft: #f6f8fa;
  --tafuel-success: #18753d;
  --tafuel-success-soft: #eaf7ef;
  --tafuel-warning: #9a6700;
  --tafuel-warning-soft: #fff7d6;
  --tafuel-danger: #a92d2d;
  --tafuel-danger-soft: #fff0f0;
  color: var(--tafuel-text);
  font: inherit;
  line-height: 1.5;
  max-width: 100%;
  position: relative;
}

.tafuel-app * {
  box-sizing: border-box;
}

.tafuel-section {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.tafuel-section + .tafuel-section {
  margin-top: 32px;
}

.tafuel-section h2,
.tafuel-section h3 {
  color: var(--tafuel-text);
  line-height: 1.25;
  margin: 0 0 12px;
}

.tafuel-section-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tafuel-section-head h2 {
  margin: 0;
}

.tafuel-updated,
.tafuel-result-count {
  color: var(--tafuel-muted);
  font-size: .9rem;
}

.tafuel-status,
.tafuel-notice {
  align-items: center;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 9px;
  display: flex;
  gap: 9px;
  margin: 0 0 18px;
  padding: 11px 14px;
}

.tafuel-status.is-ready {
  display: none;
}

.tafuel-status.is-error {
  background: var(--tafuel-danger-soft);
  border-color: #f0caca;
  color: var(--tafuel-danger);
}


/* Kompaktne regulirane cene izven avtocest */
.tafuel-regulation-box {
  align-items: center;
  background: #fffafa;
  border: 1px solid #ead6d6;
  border-left: 4px solid var(--tafuel-primary);
  border-radius: 9px;
  box-sizing: border-box;
  display: grid;
  gap: 10px 22px;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  margin: 0 0 24px;
  padding: 14px 18px;
}

.tafuel-regulation-box[hidden] {
  display: none;
}

.tafuel-regulation-box__title {
  color: var(--tafuel-text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
}

.tafuel-regulation-box__content {
  display: contents;
}

.tafuel-regulation-price {
  align-items: baseline;
  border-left: 1px solid #ead6d6;
  display: flex;
  gap: 9px;
  min-width: 170px;
  padding-left: 18px;
}

.tafuel-regulation-price__fuel {
  color: #425066;
  font-size: 15px;
  font-weight: 750;
  white-space: nowrap;
}

.tafuel-regulation-price__value {
  color: #111827;
  font-size: 21px;
  font-weight: 850;
  line-height: 1.15;
  white-space: nowrap;
}

.tafuel-regulation-box__note {
  color: #5f6b7c;
  font-size: 14px;
  grid-column: 1 / -1;
  line-height: 1.4;
  margin: -2px 0 0;
}

.tafuel-spinner {
  animation: tafuel-spin .8s linear infinite;
  border: 2px solid #d8dde5;
  border-radius: 50%;
  border-top-color: var(--tafuel-primary);
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

@keyframes tafuel-spin {
  to { transform: rotate(360deg); }
}

/* Trenutne cene */
.tafuel-kpis,
.tafuel-overview-grid {
  align-items: stretch;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tafuel-kpi,
.tafuel-price-card {
  background: var(--tafuel-surface);
  border: 1px solid #e1e6ed;
  border-top: 4px solid var(--tafuel-primary);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(20, 30, 45, .04);
  color: var(--tafuel-text);
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  min-height: 210px;
  min-width: 0;
  padding: 18px;
  position: relative;
  width: 100%;
}

.tafuel-kpi.is-selected,
.tafuel-price-card.is-active {
  background: #fff8f8;
  border-color: var(--tafuel-primary);
  box-shadow: 0 0 0 2px rgba(177, 53, 53, .08);
}

.tafuel-kpi button {
  all: unset;
  align-items: stretch;
  box-sizing: border-box;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  text-align: left;
  width: 100%;
}

.tafuel-kpi button:focus-visible {
  border-radius: 6px;
  outline: 3px solid rgba(177, 53, 53, .28);
  outline-offset: 3px;
}

.tafuel-price-card__header {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 4px;
  min-width: 0;
}

.tafuel-kpi-name,
.tafuel-price-card__title {
  color: var(--tafuel-text);
  display: block;
  flex: 1 1 auto;
  font-size: 16px;
  font-weight: 800;
  hyphens: none;
  line-height: 1.3;
  min-width: 0;
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: normal;
}

.tafuel-price-card__selected {
  align-items: center;
  background: #fdeaea;
  border-radius: 999px;
  color: #982d2d;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  padding: 4px 7px;
  white-space: nowrap;
}

.tafuel-price-card__average-label {
  color: #647084;
  display: block;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
  margin: 4px 0 3px;
}

.tafuel-kpi-price,
.tafuel-price-card__value {
  align-items: baseline;
  color: #111827;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: clamp(26px, 2.1vw, 34px);
  font-weight: 850;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin: 0 0 14px;
  max-width: 100%;
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: keep-all;
}

.tafuel-price-card__unit {
  font-size: .62em;
  font-weight: 750;
  margin-left: 5px;
  white-space: nowrap;
}

.tafuel-kpi-meta,
.tafuel-price-card__details,
.tafuel-price-card__meta {
  color: #5f6b7c;
  display: grid;
  font-size: 13px;
  font-weight: 600;
  gap: 5px;
  line-height: 1.4;
  margin-top: auto;
  min-width: 0;
}

.tafuel-kpi-meta > span,
.tafuel-price-card__details > span,
.tafuel-price-card__meta > span {
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.tafuel-trend-up { color: var(--tafuel-danger); }
.tafuel-trend-down { color: var(--tafuel-success); }
.tafuel-trend-flat { color: var(--tafuel-muted); }

/* Filtri */
.tafuel-filters,
.tafuel-filter-grid {
  display: grid;
  gap: 14px 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tafuel-filters label,
.tafuel-savings-form label {
  display: grid;
  font-size: .88rem;
  font-weight: 600;
  gap: 5px;
  min-width: 0;
}

.tafuel-filters input,
.tafuel-filters select,
.tafuel-savings-form input {
  background: #fff;
  border: 1px solid #cfd6df;
  border-radius: 8px;
  color: var(--tafuel-text);
  font: inherit;
  min-height: 42px;
  padding: 8px 10px;
  width: 100%;
}

.tafuel-filters input:focus,
.tafuel-filters select:focus,
.tafuel-savings-form input:focus {
  border-color: var(--tafuel-primary);
  box-shadow: 0 0 0 3px rgba(177, 53, 53, .1);
  outline: 0;
}

.tafuel-check {
  align-items: center !important;
  display: flex !important;
  gap: 8px !important;
  padding-top: 23px;
}

.tafuel-check input {
  min-height: auto;
  width: auto;
}

.tafuel-filter-actions {
  align-items: end;
  display: flex;
  gap: 8px;
  grid-column: 1 / -1;
}

.tafuel-filter-actions select {
  max-width: 105px;
}

.tafuel-app .tafuel-filter-toggle {
  display: inline-flex;
}

.tafuel-app .tafuel-filters.is-collapsed,
.tafuel-app .tafuel-filters[hidden] {
  display: none;
}

.tafuel-overview-section + .tafuel-filter-section {
  margin-top: 32px;
}

/* Gumbi */
.tafuel-app .tafuel-btn,
.tafuel-app button,
.tafuel-app .tafuel-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  justify-content: center;
  line-height: 1.2;
  min-height: 40px;
  padding: 8px 13px;
  text-decoration: none;
}

.tafuel-app .tafuel-location-btn,
.tafuel-app .tafuel-btn-primary {
  background: var(--tafuel-primary);
  border-color: var(--tafuel-primary);
  color: #fff;
}

.tafuel-app .tafuel-location-btn:hover,
.tafuel-app .tafuel-location-btn:focus-visible,
.tafuel-app .tafuel-btn-primary:hover,
.tafuel-app .tafuel-btn-primary:focus-visible {
  background: var(--tafuel-primary-hover);
  border-color: var(--tafuel-primary-hover);
  color: #fff;
}

.tafuel-app .tafuel-btn-secondary {
  background: #fff;
  border-color: #cfd6df;
  color: #263244;
}

.tafuel-app .tafuel-btn-secondary:hover,
.tafuel-app .tafuel-btn-secondary:focus-visible {
  background: #fffafa;
  border-color: var(--tafuel-primary);
  color: var(--tafuel-primary);
}

.tafuel-app .tafuel-btn-navigation,
.tafuel-app .tafuel-reset,
.tafuel-app .tafuel-filter-toggle,
.tafuel-app .tafuel-periods button {
  background: #f3f5f8;
  border-color: #d6dce5;
  color: #263244;
}

.tafuel-app .tafuel-btn-navigation:hover,
.tafuel-app .tafuel-btn-navigation:focus-visible,
.tafuel-app .tafuel-reset:hover,
.tafuel-app .tafuel-filter-toggle:hover,
.tafuel-app .tafuel-periods button:hover,
.tafuel-app .tafuel-periods button.is-active {
  background: #e9edf2;
  border-color: var(--tafuel-primary);
  color: var(--tafuel-primary);
}

.tafuel-app button:focus-visible,
.tafuel-app a:focus-visible {
  outline: 3px solid rgba(177, 53, 53, .22);
  outline-offset: 2px;
}

.tafuel-app button[disabled] {
  cursor: not-allowed;
  opacity: .55;
}

/* Cenovna kartica je semantičen gumb, vendar ne sme podedovati splošne CTA postavitve. */
.tafuel-app .tafuel-kpi > button {
  all: unset;
  align-items: stretch;
  box-sizing: border-box;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  text-align: left;
  width: 100%;
}

.tafuel-app .tafuel-kpi > button:focus-visible {
  border-radius: 6px;
  outline: 3px solid rgba(177, 53, 53, .28);
  outline-offset: 3px;
}

/* Najcenejše */
.tafuel-top-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tafuel-top-card {
  background: #fff;
  border: 1px solid var(--tafuel-border);
  border-radius: 10px;
  cursor: pointer;
  min-width: 0;
  padding: 12px;
  position: relative;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.tafuel-top-card:hover,
.tafuel-top-card:focus-visible {
  border-color: #c7ced8;
  box-shadow: 0 5px 18px rgba(20, 30, 45, .08);
  outline: none;
  transform: translateY(-1px);
}

.tafuel-top-rank {
  align-items: center;
  background: var(--tafuel-primary-soft);
  border-radius: 999px;
  color: var(--tafuel-primary);
  display: flex;
  font-size: .78rem;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  position: absolute;
  right: 9px;
  top: 9px;
  width: 24px;
}

.tafuel-top-card strong {
  display: block;
  padding-right: 28px;
}

.tafuel-top-price {
  color: #111827;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 6px 0;
}

.tafuel-subtle {
  color: var(--tafuel-muted);
  font-size: .84rem;
}

/* Zemljevid */
.tafuel-map {
  background: #eef1f4;
  border: 1px solid var(--tafuel-border);
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
}

.tafuel-map-legend {
  align-items: center;
  color: var(--tafuel-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: .8rem;
  gap: 7px;
  margin-top: 9px;
}

.tafuel-dot {
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: 50%;
  display: inline-block;
  height: 12px;
  width: 12px;
}

.tafuel-dot.cheapest,
.tafuel-marker.cheapest { background: #16803f; }
.tafuel-dot.below,
.tafuel-marker.below { background: #6ebf4b; }
.tafuel-dot.average,
.tafuel-marker.average { background: #f5c542; }
.tafuel-dot.above,
.tafuel-marker.above { background: #ee8b2c; }
.tafuel-dot.expensive,
.tafuel-marker.expensive { background: #cf2e2e; }
.tafuel-marker.missing { background: #7b8491; }

.tafuel-div-icon {
  background: transparent;
  border: 0;
}

.tafuel-marker {
  align-items: center;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .35);
  color: #fff;
  display: flex;
  font-size: 10px;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  transform: rotate(-45deg);
  width: 30px;
}

.tafuel-marker span { transform: rotate(45deg); }

.tafuel-leaflet-popup h4 { margin: 0 0 5px; }
.tafuel-leaflet-popup p { margin: 4px 0; }

.tafuel-map-popup-actions {
  align-items: center;
  display: flex;
  gap: 7px;
  margin-top: 10px;
}

.tafuel-map-popup-actions .tafuel-btn {
  font-size: 13px;
  min-height: 36px;
  padding: 7px 10px;
  white-space: nowrap;
}

/* Tabela */
.tafuel-table-scroll {
  overflow-x: auto;
  width: 100%;
}

.tafuel-table {
  border-collapse: collapse;
  font-size: .88rem;
  table-layout: auto;
  width: 100%;
}

.tafuel-table th,
.tafuel-table td {
  border-bottom: 1px solid #e7eaf0;
  box-sizing: border-box;
  padding: 10px 7px;
  text-align: left;
  vertical-align: middle;
}

.tafuel-table th {
  background: #f8f9fb;
  font-size: .79rem;
  hyphens: none;
  overflow-wrap: normal;
  position: sticky;
  top: 0;
  white-space: nowrap;
  word-break: normal;
  z-index: 1;
}

.tafuel-table th:nth-child(4),
.tafuel-table td:nth-child(4) {
  min-width: 72px;
  white-space: nowrap;
}

.tafuel-table th:nth-child(5),
.tafuel-table td:nth-child(5) {
  min-width: 108px;
}

.tafuel-table th:nth-child(6),
.tafuel-table td:nth-child(6) {
  min-width: 100px;
  white-space: nowrap;
}

.tafuel-table th:nth-child(7),
.tafuel-table td:nth-child(7) {
  min-width: 100px;
}

.tafuel-table th:last-child,
.tafuel-table td:last-child {
  min-width: 185px;
}

.tafuel-price {
  color: #111827;
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
}

.tafuel-price-badge {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 135px;
  padding: 4px 8px;
  white-space: normal;
  width: fit-content;
}

.tafuel-price-badge--cheapest,
.tafuel-price-badge.cheapest {
  background: #e8f7ee;
  color: #146c38;
}

.tafuel-price-badge--below,
.tafuel-price-badge.below {
  background: #edf8f0;
  color: #28733f;
}

.tafuel-price-badge--average,
.tafuel-price-badge.average {
  background: #fff7d6;
  color: #7c5b00;
}

.tafuel-price-badge--above,
.tafuel-price-badge.above {
  background: #fff0dd;
  color: #9a5200;
}

.tafuel-price-badge--expensive,
.tafuel-price-badge.expensive {
  background: #fff0f0;
  color: #a52b2b;
}

.tafuel-price-badge--missing,
.tafuel-price-badge.missing {
  background: #f0f1f3;
  color: #667085;
}

.tafuel-row-actions,
.tafuel-table-actions {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
}

.tafuel-table-actions .tafuel-btn,
.tafuel-row-actions .tafuel-btn {
  font-size: 13px;
  hyphens: none;
  line-height: 1.2;
  min-height: 38px;
  overflow-wrap: normal;
  padding: 8px 10px;
  white-space: nowrap;
  word-break: normal;
}

.tafuel-mobile-cards {
  display: none;
}

.tafuel-pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 14px;
}

.tafuel-pagination button {
  background: #f3f5f8;
  border-color: #d6dce5;
  color: #263244;
  min-width: 40px;
}

.tafuel-pagination button.is-active {
  background: var(--tafuel-primary);
  border-color: var(--tafuel-primary);
  color: #fff;
}

/* Kalkulator */
.tafuel-savings-form {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tafuel-savings-output {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.tafuel-saving-card {
  background: var(--tafuel-surface-soft);
  border: 1px solid #e7eaf0;
  border-radius: 9px;
  padding: 12px;
}

.tafuel-saving-card strong {
  color: #111827;
  display: block;
  font-size: 1.15rem;
}

/* Grafi */
.tafuel-stats-note {
  color: var(--tafuel-muted);
  font-size: 14px;
  line-height: 1.55;
  margin: -2px 0 18px;
}

.tafuel-chart-card-note {
  color: var(--tafuel-muted);
  font-size: 13px;
  line-height: 1.45;
  margin: -5px 0 12px;
}

.tafuel-chart-summary[hidden],
.tafuel-chart-summary:empty {
  display: none;
}

.tafuel-chart-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tafuel-chart-card {
  border: 1px solid var(--tafuel-border);
  border-radius: 10px;
  min-height: 0;
  padding: 14px;
}

.tafuel-chart-card canvas:not([hidden]) {
  display: block;
  height: 270px !important;
  max-height: 270px;
  width: 100% !important;
}

.tafuel-chart-card.is-empty {
  min-height: 0;
}

.tafuel-chart-empty {
  background: var(--tafuel-surface-soft);
  border: 1px solid #e1e6ed;
  border-radius: 8px;
  color: var(--tafuel-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  padding: 14px 16px;
}

.tafuel-periods {
  display: flex;
  gap: 5px;
}

.tafuel-periods button {
  font-size: .82rem;
  min-height: 34px;
  padding: 5px 9px;
}

.tafuel-chart-summary {
  color: var(--tafuel-muted);
  font-size: .85rem;
}

.tafuel-trends {
  display: grid;
  gap: 8px;
}

.tafuel-trend-row {
  align-items: center;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 8px 0;
}

/* FAQ */
.tafuel-faq {
  border-top: 1px solid var(--tafuel-border);
  padding-top: 20px;
}

.tafuel-faq details {
  border-top: 1px solid #e6e9ee;
  padding: 10px 0;
}

.tafuel-faq summary {
  cursor: pointer;
  font-weight: 700;
}

/* Modal */
.tafuel-modal[hidden] { display: none; }

.tafuel-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 999999;
}

.tafuel-modal-backdrop {
  background: rgba(0, 0, 0, .55);
  inset: 0;
  position: absolute;
}

.tafuel-modal-dialog,
.tafuel-modal-panel {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  height: auto;
  max-height: calc(100vh - 40px);
  min-height: 0;
  overflow-y: auto;
  padding: 24px;
  position: relative;
  width: min(860px, calc(100vw - 32px));
  z-index: 1;
}

.tafuel-modal-close {
  background: var(--tafuel-primary);
  border-color: var(--tafuel-primary);
  color: #fff;
  font-size: 1.25rem;
  height: 38px;
  min-height: 38px;
  padding: 0;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 38px;
  z-index: 2;
}

.tafuel-modal-content h2 {
  padding-right: 46px;
}

.tafuel-modal-loading {
  align-items: center;
  color: var(--tafuel-muted);
  display: flex;
  gap: 10px;
  justify-content: center;
  min-height: 90px;
}

.tafuel-modal-loading p { margin: 0; }

.tafuel-modal-error {
  background: var(--tafuel-danger-soft);
  border: 1px solid #f0caca;
  border-radius: 8px;
  color: #7f1d1d;
  margin: 24px auto;
  max-width: 560px;
  padding: 18px;
  text-align: center;
}

.tafuel-modal-error h2 {
  color: #7f1d1d;
  padding-right: 0;
}

.tafuel-modal-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}

.tafuel-detail-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.tafuel-detail-prices {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 15px 0;
}

.tafuel-detail-price {
  background: var(--tafuel-surface-soft);
  border: 1px solid #e7eaf0;
  border-radius: 9px;
  padding: 10px;
}

.tafuel-detail-chart {
  height: 310px;
}

.tafuel-detail-chart canvas {
  height: 100% !important;
  width: 100% !important;
}

.tafuel-empty {
  color: var(--tafuel-muted);
  margin: 0;
  padding: 18px;
  text-align: center;
}

.tafuel-skeleton {
  animation: tafuel-pulse 1.3s infinite;
  background: linear-gradient(90deg, #eee, #f8f8f8, #eee);
  background-size: 200% 100%;
  border-radius: 8px;
  height: 64px;
}

@keyframes tafuel-pulse {
  to { background-position: -200% 0; }
}

.tafuel-nav-link {
  margin: 0;
  white-space: nowrap;
}

.tafuel-app.is-loading .tafuel-table-wrap {
  display: grid;
  gap: 8px;
}

.tafuel-app.is-loading .tafuel-table-wrap::before,
.tafuel-app.is-loading .tafuel-table-wrap::after {
  animation: tafuel-pulse 1.3s infinite;
  background: linear-gradient(90deg, #eee, #f8f8f8, #eee);
  background-size: 200% 100%;
  border-radius: 8px;
  content: "";
  display: block;
  height: 60px;
}

@media (max-width: 1050px) {
  .tafuel-table {
    font-size: .82rem;
  }

  .tafuel-table th,
  .tafuel-table td {
    padding-left: 6px;
    padding-right: 6px;
  }

  .tafuel-table th:last-child,
  .tafuel-table td:last-child {
    min-width: 172px;
  }
}

@media (max-width: 900px) {
  .tafuel-section + .tafuel-section {
    margin-top: 24px;
  }

  .tafuel-overview-section + .tafuel-filter-section {
    margin-top: 26px;
  }

  .tafuel-kpis,
  .tafuel-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tafuel-filters,
  .tafuel-filter-grid {
    grid-template-columns: 1fr;
  }

  .tafuel-check {
    padding-top: 0;
  }

  .tafuel-top-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tafuel-chart-grid {
    grid-template-columns: 1fr;
  }

  .tafuel-table-scroll {
    display: none;
  }

  .tafuel-mobile-cards {
    display: grid;
    gap: 10px;
  }

  .tafuel-mobile-card {
    border: 1px solid var(--tafuel-border);
    border-radius: 10px;
    padding: 13px;
  }

  .tafuel-mobile-card-head {
    align-items: start;
    display: flex;
    gap: 10px;
    justify-content: space-between;
  }

  .tafuel-mobile-card .tafuel-row-actions {
    margin-top: 10px;
  }

  .tafuel-detail-grid {
    grid-template-columns: 1fr;
  }

  .tafuel-filter-toggle {
    display: inline-flex;
  }

  .tafuel-filters.is-collapsed {
    display: none;
  }
}

@media (max-width: 700px) {
  .tafuel-regulation-box {
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px;
  }

  .tafuel-regulation-box__title {
    grid-column: 1 / -1;
  }

  .tafuel-regulation-price {
    border-left: 0;
    border-top: 1px solid #ead6d6;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    padding: 10px 0 0;
  }

  .tafuel-regulation-box__note {
    grid-column: 1 / -1;
    margin-top: 0;
  }
}

@media (max-width: 390px) {
  .tafuel-regulation-box {
    grid-template-columns: 1fr;
  }

  .tafuel-regulation-box__title,
  .tafuel-regulation-box__note {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .tafuel-kpi,
  .tafuel-price-card {
    min-height: 0;
    padding: 16px;
  }

  .tafuel-kpi-price,
  .tafuel-price-card__value {
    font-size: 30px;
  }
}

@media (max-width: 560px) {
  .tafuel-kpis,
  .tafuel-overview-grid,
  .tafuel-savings-form {
    grid-template-columns: 1fr;
  }

  .tafuel-top-list {
    grid-template-columns: 1fr;
  }

  .tafuel-filter-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .tafuel-filter-actions select {
    max-width: none;
  }

  .tafuel-savings-output {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tafuel-detail-prices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tafuel-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .tafuel-periods {
    flex-wrap: wrap;
  }

  .tafuel-map {
    height: 420px !important;
  }

  .tafuel-modal {
    align-items: flex-start;
    padding: 10px;
  }

  .tafuel-modal-dialog,
  .tafuel-modal-panel {
    max-height: calc(100vh - 20px);
    padding: 20px 16px;
    width: 100%;
  }

  .tafuel-row-actions,
  .tafuel-table-actions,
  .tafuel-map-popup-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .tafuel-row-actions .tafuel-btn,
  .tafuel-map-popup-actions .tafuel-btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .tafuel-savings-output,
  .tafuel-detail-prices {
    grid-template-columns: 1fr;
  }

  .tafuel-mobile-card-head {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tafuel-app * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
