/**
 * @file        sg-capture.css
 * @description Styles of the capture module: elevation profile below the trip map, mode proposal chip, flight lookup card, voice note chips, Google Photos import page (V8-01 to V8-04, G8-09)
 *
 * @author      Thomas Dobler - SYNTHETIXMIND LTD
 * @company     SYNTHETIXMIND LTD, Paphos, Cyprus
 * @url         https://synthetixmind.com
 *
 * @uid         c78db4d9-f8ce-488a-b8b7-6c17083ca748
 * @version     0.1.0.1
 * @created     2026-12-01
 * @updated     2026-12-01
 *
 * @copyright   (c) 2026 by SYNTHETIXMIND LTD
 * @license     Proprietary — All rights reserved
 */

/* V8-01 elevation profile: 360 px first; the chart scales with the width, figures wrap. Logical properties only (RTL). */
.sg-capture-profile { margin-block: 16px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.sg-capture-profile h2 { font-family: var(--font-head); font-size: 1.1rem; margin: 0 0 8px; }
.sg-capture-profile__figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 0 0 12px; }
.sg-capture-profile__figures div { min-width: 0; }
.sg-capture-profile__figures dt { color: var(--ink-muted); font-size: 0.85rem; }
.sg-capture-profile__figures dd { margin: 0; font-family: var(--font-mono); font-size: 1rem; overflow-wrap: anywhere; }
.sg-capture-profile__chart { position: relative; }
.sg-capture-profile__chart svg { display: block; inline-size: 100%; block-size: 120px; touch-action: pan-y; cursor: crosshair; }
.sg-capture-profile__area path { fill: var(--accent); opacity: 0.18; }
.sg-capture-profile__line path { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.sg-capture-profile__cursor { stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sg-capture-profile__readout { min-block-size: 1.4em; margin: 4px 0 0; font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-muted); }
.sg-capture-profile__table summary { cursor: pointer; margin-block-start: 8px; }
.sg-capture-profile__table table { border-collapse: collapse; margin-block-start: 8px; }
.sg-capture-profile__table td, .sg-capture-profile__table th { padding-block: 2px; padding-inline: 0 16px; text-align: start; }
.sg-capture-marker { inline-size: 14px; block-size: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--ink); }
@media (min-width: 720px) {
  .sg-capture-profile__figures { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sg-capture-profile__chart svg { block-size: 160px; }
}

/* V8-02 proposal chip with Confirm and Change: wraps under the leg text, no orange (the leg form keeps the focal point). */
.sg-capture-mode { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block-start: 8px; }
.sg-capture-inline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; }
.sg-capture-chip { font-size: 0.85rem; overflow-wrap: anywhere; }
.sg-capture-mode-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; }

/* V8-03 flight lookup card inside the leg form. */
.sg-capture-flight { display: grid; gap: 4px; margin-block-start: 8px; }
.sg-capture-flight__result:empty { display: none; }
.sg-capture-flight__result { padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); overflow-wrap: anywhere; }
.sg-capture-flight__result .sg-mono { font-family: var(--font-mono); }

/* V8-04 voice notes and G8-09 Google Photos. */
.sg-capture-voice { margin-block: 12px; }
.sg-capture-gp-page progress { inline-size: 100%; }
.sg-capture-gp { margin-block: 8px; }
