/**
 * @file        sg-travel.css
 * @description Styles of the travel module views W-02 location sharing (segmented precision per audience, preview cards) and W-09 admin transport catalogs (mobile first, light and dark through sg.css variables)
 *
 * @author      Thomas Dobler - SYNTHETIXMIND LTD
 * @company     SYNTHETIXMIND LTD, Paphos, Cyprus
 * @url         https://synthetixmind.com
 *
 * @uid         cadf6e90-d4ff-4dcc-8b9c-64e2e9868917
 * @version     0.0.0.1
 * @created     2026-12-02
 * @updated     2026-12-02
 *
 * @copyright   (c) 2026 by SYNTHETIXMIND LTD
 * @license     Proprietary — All rights reserved
 */

/* ── W-02 location sharing ── */
.sg-loc-paused { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin: 0 0 16px;
  border: 1px solid var(--border-warm); border-radius: var(--radius); background: var(--beige); color: var(--warm-ink); }
.sg-loc-paused p { margin: 0; flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.sg-loc-pause { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.sg-loc-pause > div { flex: 1 1 260px; min-width: 0; }
.sg-loc-pause h2 { margin-top: 0; }
.sg-loc-pause p { margin: 0; }
.sg-loc { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.sg-loc > .sg-panel { margin: 0; }
.sg-loc-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.sg-loc-bar h2 { margin: 0; }
.sg-loc-bar .sg-chip { font-size: 0.75rem; }
.sg-loc-rows { list-style: none; padding: 0; margin: 12px 0; }
.sg-loc-row { border-top: 1px solid var(--border); padding: 12px 0; }
.sg-loc-row:first-child { border-top: 0; }
.sg-loc-row fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.sg-loc-row__name { font-weight: 600; padding: 0; margin-bottom: 8px; overflow-wrap: anywhere; }
/* Segmented choice: real radio buttons, visually hidden, the label is the segment. */
.sg-loc-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--bg); }
.sg-loc-seg__opt { flex: 1 1 auto; position: relative; }
.sg-loc-seg__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sg-loc-seg__opt span { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 10px; border-radius: var(--radius-sm); color: var(--ink-muted); cursor: pointer; text-align: center; }
.sg-loc-seg__opt input:checked + span { background: var(--ink); color: var(--surface); font-weight: 600; }
.sg-loc-seg__opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.sg-loc-cards { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.sg-loc-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); }
.sg-loc-card > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sg-loc-card__icon { color: var(--accent); flex: none; }
.sg-loc-card__who { font-size: 0.75rem; letter-spacing: 0.04em; color: var(--ink-muted); overflow-wrap: anywhere; }
.sg-loc-card__pos { overflow-wrap: anywhere; }
@media (min-width: 1024px) {
  .sg-loc { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
}

/* ── W-09 admin transport catalogs ── */
.sg-cat-head .sg-actions { margin: 0; }
.sg-cat-head > div { min-width: 0; flex: 1 1 280px; }
.sg-cat-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.sg-cat-bar h2 { margin: 0; }
.sg-cat-bar .sg-chips { margin: 0; }
.sg-cat-chip--error { border-color: var(--accent); color: var(--accent); }
.sg-cat-errors ul { margin: 8px 0 0; padding-left: 20px; }
.sg-cat-errors li { overflow-wrap: anywhere; }
.sg-cat-sample li { overflow-wrap: anywhere; }
.sg-cat-actions { white-space: nowrap; }
.sg-cat-actions a { margin-right: 12px; }
.sg-cat-actions form { display: inline; }
.sg-cat-edit { border-color: var(--border-strong); }
.sg-cat-list .sg-search { margin-bottom: 8px; }
