/* Gespeicherte Fahrtverlaeufe. Farben folgen dem vorhandenen Admin-Theme. */
#trip-modal .modal-card { max-width: 840px; }
#trip-modal .modal-header { background: var(--bg); z-index: 3; padding: 3px 0 10px; }
.trip-charts { --tc-consume: var(--coral); --tc-recuperate: var(--green); padding: 20px; }
.tc-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 14px; margin-bottom: 6px; }
.tc-heading h2 { font-size: 17px; font-weight: 650; margin: 0; }
.tc-summary { color: var(--text-muted); font: 11px var(--mono); }
.tc-intro, .tc-note { color: var(--text-muted); font-size: 12px; line-height: 1.55; margin: 0; }
.tc-toolbar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0 12px; }
.tc-axis { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg); }
.tc-axis button { background: transparent; color: var(--text-muted); border: 0; border-radius: 6px; padding: 7px 12px; cursor: pointer; font: 12px var(--sans); min-height: 32px; }
.tc-axis button[aria-pressed="true"] { background: var(--blue-bg); color: var(--blue); font-weight: 650; }
.tc-axis button:disabled { opacity: .45; cursor: default; }
.tc-save-hint { color: var(--text-faint); font-size: 11px; }
.tc-fields { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; }
.tc-fields summary { padding: 11px 12px; font-size: 12px; cursor: pointer; color: var(--text); }
.tc-fields summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 9px; }
.tc-fields-summary { margin-left: 4px; }
.tc-field-groups { padding: 0 12px 12px; }
.tc-field-group { border: 0; min-width: 0; padding: 0; margin: 0 0 12px; }
.tc-field-group:last-child { margin-bottom: 0; }
.tc-field-group legend { padding: 0; color: var(--text-muted); font-size: 11px; margin-bottom: 7px; }
.tc-field-options { display: flex; gap: 6px; flex-wrap: wrap; }
.tc-field-options label { position: relative; margin: 0; cursor: pointer; }
.tc-field-options input { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; }
.tc-field-options span { display: flex; align-items: center; gap: 6px; font-size: 11px; padding: 8px 9px; min-height: 34px; border: 1px solid var(--border); border-radius: 7px; color: var(--text-muted); background: var(--bg); }
.tc-field-options span::before { content: ''; width: 10px; height: 10px; border: 1px solid var(--text-faint); border-radius: 3px; flex: 0 0 auto; }
.tc-field-options input:checked + span { border-color: var(--blue); color: var(--text); background: var(--blue-bg); }
.tc-field-options input:checked + span::before { background: var(--blue); border-color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue-bg); }
.tc-field-options input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.tc-field-options input:disabled + span { opacity: .45; cursor: default; }
.tc-fields-explainer { color: var(--text-faint); font-size: 11px; line-height: 1.4; margin: 10px 0 0; }
.tc-position { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 11px 0; color: var(--text-muted); font: 11px var(--mono); min-height: 38px; }
.tc-position strong { color: var(--text); font-weight: 500; }
.tc-plot-card { padding: 13px 0 7px; border-top: 1px solid var(--border); }
.tc-plot-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 5px; }
.tc-plot-title { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 550; min-width: 0; margin: 0; }
.tc-swatch { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--tc-series-color); flex: 0 0 auto; }
.tc-value { color: var(--text); white-space: nowrap; font: 12px var(--mono); font-variant-numeric: tabular-nums; }
.tc-value[data-direction="consume"] { color: var(--tc-consume); }
.tc-value[data-direction="recuperate"] { color: var(--tc-recuperate); }
.tc-plot { position: relative; height: 138px; touch-action: pan-y; cursor: crosshair; outline-offset: 2px; border-radius: 4px; }
.tc-plot:focus-visible { outline: 2px solid var(--blue); }
.tc-plot canvas { width: 100%; height: 100%; display: block; }
.tc-cursor { display: none; pointer-events: none; position: absolute; top: 8px; bottom: 25px; border-left: 1px dashed var(--text-muted); }
.tc-cursor-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--tc-series-color); box-shadow: 0 0 0 2px var(--card); transform: translate(-4px, -4px); }
.tc-plot-empty { position: absolute; top: 38%; left: 54px; right: 16px; margin: 0; text-align: center; color: var(--text-faint); font-size: 11px; line-height: 1.4; }
.tc-legend { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 7px 52px; font-size: 10px; color: var(--text-muted); }
.tc-legend span { display: inline-flex; align-items: center; gap: 5px; }
.tc-legend i { display: inline-block; width: 12px; height: 2px; background: var(--tc-consume); }
.tc-legend .tc-negative { background: var(--tc-recuperate); }
.tc-footer { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 7px; }
.tc-footer .tc-note + .tc-note { margin-top: 4px; }
.tc-updating { color: var(--amber); }
.tc-status { text-align: center; padding: 28px 10px; color: var(--text-muted); }
.tc-status-title { color: var(--text); font-size: 14px; margin: 0 0 7px; font-weight: 550; }
.tc-status p:last-child { margin-bottom: 0; }
.tc-status .btn { margin-top: 14px; font-size: 12px; }
.tc-loader { width: 22px; height: 22px; border: 2px solid var(--border); border-top-color: var(--blue); border-radius: 50%; margin: 0 auto 14px; animation: tc-spin 1.1s linear infinite; }
@keyframes tc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tc-loader { animation: none; border-color: var(--blue); } }
@media (max-width: 560px) {
  .trip-charts { padding: 15px 12px; }
  .tc-heading h2 { font-size: 16px; }
  .tc-plot { height: 128px; }
  .tc-value { font-size: 11px; }
  .tc-plot-title { font-size: 11px; }
  .tc-summary { font-size: 10px; }
  .tc-save-hint { font-size: 10px; }
  .tc-position { font-size: 10px; }
}
