/* Trip Plan — SPA styles. Light theme, CSS custom-property palette. */ :root { --brand: #2563eb; --brand-dark: #1d4ed8; --brand-soft: #eff4ff; --accent: #0ea5e9; --bg: #f4f6fb; --surface: #ffffff; --surface-2: #f8fafc; --border: #e5e9f2; --border-strong: #d4dbe8; --text: #1e293b; --text-muted: #64748b; --text-faint: #94a3b8; --danger: #dc2626; --danger-soft: #fef2f2; --success: #059669; --warn: #d97706; --radius: 14px; --radius-sm: 9px; --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.05); --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08); --shadow-lg: 0 18px 48px rgba(15, 23, 42, 0.22); --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; } * { box-sizing: border-box; } html, body { height: 100%; } body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; } body.no-scroll { overflow: hidden; } h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.25; } h1 { font-size: 1.6rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1rem; } p { margin: 0; } a { color: inherit; text-decoration: none; } .muted { color: var(--text-muted); font-size: 0.9rem; } .hint { font-size: 0.82rem; } /* ---------- Buttons & inputs ---------- */ .btn { display: inline-flex; align-items: center; gap: 0.4rem; justify-content: center; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); padding: 0.55rem 1rem; border-radius: var(--radius-sm); font-size: 0.92rem; font-weight: 600; cursor: pointer; transition: background 0.15s, box-shadow 0.15s, border-color 0.15s, transform 0.05s; } .btn:hover { background: var(--surface-2); } .btn:active { transform: translateY(1px); } .btn:disabled { opacity: 0.6; cursor: default; } .btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; } .btn-primary:hover { background: var(--brand-dark); } .btn-ghost { border-color: transparent; background: transparent; } .btn-ghost:hover { background: var(--surface-2); } .btn-danger-ghost { border-color: transparent; background: transparent; color: var(--danger); } .btn-danger-ghost:hover { background: var(--danger-soft); } .btn-block { width: 100%; } .btn-sm { padding: 0.4rem 0.7rem; font-size: 0.85rem; } .link-btn { border: none; background: none; color: var(--brand); font-weight: 600; cursor: pointer; padding: 0; font-size: inherit; } .link-btn:hover { text-decoration: underline; } .input { width: 100%; padding: 0.55rem 0.7rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-size: 0.95rem; font-family: inherit; color: var(--text); background: var(--surface); } .input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); } .input-sm { padding: 0.4rem 0.6rem; font-size: 0.88rem; } textarea.input { resize: vertical; } .field { display: flex; flex-direction: column; gap: 0.3rem; } .field-grow { flex: 1; } .field-label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; } .form-row { display: flex; gap: 0.8rem; flex-wrap: wrap; } .form-row > .field { flex: 1; min-width: 140px; } .form-actions { display: flex; gap: 0.6rem; justify-content: flex-end; margin-top: 0.4rem; } .form-error { color: var(--danger); font-size: 0.85rem; min-height: 1rem; margin: 0.2rem 0; } .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.1rem 1.2rem; } /* ---------- Top nav ---------- */ .topnav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 1.4rem; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); } .brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.1rem; } .brand-mark { font-size: 1.3rem; } .brand-mark-lg { font-size: 2.4rem; } .nav-right { display: flex; align-items: center; gap: 0.8rem; } .nav-user { display: flex; align-items: center; gap: 0.45rem; font-weight: 600; font-size: 0.9rem; } .nav-avatar, .member-avatar { display: inline-flex; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--brand); color: #fff; font-size: 0.8rem; font-weight: 700; } /* ---------- Layout ---------- */ .view { display: block; } .page { max-width: 1180px; margin: 0 auto; padding: 1.4rem; display: flex; flex-direction: column; gap: 1.2rem; } .page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; } .section-head { margin-bottom: 0.8rem; } .form-slot:empty { display: none; } /* ---------- Auth ---------- */ .auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: radial-gradient(1200px 600px at 50% -10%, #dbe7ff 0%, var(--bg) 55%); } .auth-card { width: 100%; max-width: 400px; padding: 1.8rem; } .auth-head { text-align: center; margin-bottom: 1.3rem; } .auth-head h1 { margin: 0.4rem 0 0.2rem; } .auth-tabs { display: flex; gap: 0.3rem; background: var(--surface-2); padding: 0.25rem; border-radius: var(--radius-sm); margin-bottom: 1.1rem; } .auth-tab { flex: 1; border: none; background: none; padding: 0.5rem; border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; color: var(--text-muted); } .auth-tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); } .auth-form { display: flex; flex-direction: column; gap: 0.9rem; } .auth-toggle { text-align: center; margin-top: 1rem; font-size: 0.9rem; color: var(--text-muted); } .auth-panel { display: flex; flex-direction: column; gap: 0.9rem; } .auth-lead { color: var(--text-muted); font-size: 0.92rem; } .token-input { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.08em; text-transform: uppercase; } .token-reveal { gap: 1rem; } .token-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 0.85rem; padding: 0.7rem 0.85rem; border-radius: var(--radius-sm); line-height: 1.45; } .token-box { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 1.35rem; font-weight: 700; letter-spacing: 0.1em; text-align: center; padding: 0.9rem; background: var(--surface-2); border: 2px dashed var(--border-strong); border-radius: var(--radius-sm); user-select: all; word-break: break-all; } .token-actions { display: flex; justify-content: center; } /* Nav inline name edit */ .nav-name { font-weight: 600; } .nav-edit { border: none; background: none; cursor: pointer; color: var(--text-faint); font-size: 0.85rem; padding: 0 0.15rem; } .nav-edit:hover { color: var(--brand); } .nav-name-input { width: 150px; } .page-head-actions { display: flex; gap: 0.5rem; align-items: center; } .empty-actions { display: flex; gap: 0.5rem; justify-content: center; } .trip-card-currency { margin-left: auto; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.03em; color: var(--text-faint); } .join-form { display: flex; flex-direction: column; gap: 0.8rem; } /* Join-code row on the trip header */ .joincode-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding-top: 0.8rem; border-top: 1px solid var(--border); } .joincode-chip { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 700; letter-spacing: 0.08em; background: var(--brand-soft); color: var(--brand-dark); padding: 0.25rem 0.6rem; border-radius: var(--radius-sm); user-select: all; } /* ---------- Trip list ---------- */ .trip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; } .trip-card { display: flex; flex-direction: column; gap: 0.6rem; cursor: pointer; transition: transform 0.12s, box-shadow 0.12s; } .trip-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); } .trip-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem; } .trip-card-top-right { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; } .trip-card-name { font-size: 1.1rem; } .trip-card-dates { color: var(--text-muted); font-size: 0.9rem; display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; } .trip-card-countdown { font-size: 0.72rem; font-weight: 700; color: var(--brand-dark); background: var(--brand-soft); padding: 0.1rem 0.45rem; border-radius: 999px; } .trip-card-meta { display: flex; gap: 1rem; font-size: 0.85rem; color: var(--text-muted); margin-top: auto; } /* Drag-to-reorder trip cards: same grip + insertion-indicator convention as the day editor's .entry-drag-handle / .entry-row (see dragdrop.js). */ .trip-drag-handle { flex-shrink: 0; cursor: grab; color: var(--text-faint); font-size: 0.95rem; line-height: 1; letter-spacing: -1px; user-select: none; } .trip-drag-handle:active { cursor: grabbing; } .trip-card.dragging { opacity: 0.4; } .trip-card.drop-before { box-shadow: inset 0 3px 0 var(--brand); } .trip-card.drop-after { box-shadow: inset 0 -3px 0 var(--brand); } .role-badge { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 999px; } .role-owner { background: #fef3c7; color: #92400e; } .role-editor { background: var(--brand-soft); color: var(--brand-dark); } .new-trip-form { display: flex; flex-direction: column; gap: 0.8rem; } /* ---------- Empty / loading / error ---------- */ .loading { display: flex; align-items: center; gap: 0.6rem; justify-content: center; padding: 3rem; color: var(--text-muted); } .spinner { width: 1.1rem; height: 1.1rem; border: 2px solid var(--border-strong); border-top-color: var(--brand); border-radius: 50%; animation: spin 0.8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .empty-state { text-align: center; padding: 3rem 1.5rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 0.6rem; align-items: center; } .empty-icon { font-size: 2.6rem; } .empty-state h3 { color: var(--text); } .error-box { text-align: center; padding: 2rem; color: var(--danger); display: flex; flex-direction: column; gap: 0.8rem; align-items: center; } /* ---------- Trip header ---------- */ .trip-header { display: flex; flex-direction: column; gap: 1rem; } .trip-header-top { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; } .back-link { font-size: 0.85rem; color: var(--brand); font-weight: 600; } .back-link:hover { text-decoration: underline; } .trip-title { margin-top: 0.3rem; } .trip-subtitle { margin-top: 0.2rem; } .trip-header-actions { display: flex; gap: 0.5rem; align-items: flex-start; } .members-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding-top: 0.8rem; border-top: 1px solid var(--border); } .members-label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); } .member-chip { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 0.25rem 0.6rem 0.25rem 0.3rem; font-size: 0.85rem; font-weight: 600; } .member-owner { background: #fffbeb; border-color: #fde68a; } .member-remove { border: none; background: none; cursor: pointer; color: var(--text-faint); font-size: 1rem; line-height: 1; padding: 0; } .member-remove:hover { color: var(--danger); } .invite-form { display: flex; gap: 0.4rem; margin-left: auto; } .invite-form .input { width: 180px; } .trip-edit { display: flex; flex-direction: column; gap: 0.8rem; padding-top: 0.9rem; border-top: 1px solid var(--border); } /* ---------- Calendar ---------- */ .legend { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 0.9rem; } .legend-item { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; color: var(--text-muted); } .legend-dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; display: inline-block; } .calendar { display: flex; flex-direction: column; gap: 6px; } .cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; } .cal-week { display: flex; flex-direction: column; gap: 3px; } .cal-week-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; } /* Stay bands: an all-day-event strip above each week's day cells. The strip is a 7-column grid mirroring the days row; bands place themselves via inline grid-column/row (lane) styles from stayBands.js. */ .cal-week-bands { --band-h: 1.45rem; display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px 6px; } .cal-band { height: var(--band-h); display: flex; align-items: center; min-width: 0; padding: 0 0.5rem; font-size: 0.72rem; font-weight: 600; color: #334155; background: color-mix(in srgb, var(--chip) 20%, white); border: 1px solid color-mix(in srgb, var(--chip) 45%, white); border-left: 3px solid var(--chip); cursor: pointer; transition: background 0.12s; } .cal-band:hover { background: color-mix(in srgb, var(--chip) 32%, white); } .cal-band.round-l { border-top-left-radius: 999px; border-bottom-left-radius: 999px; } .cal-band.round-r { border-top-right-radius: 999px; border-bottom-right-radius: 999px; } .cal-band-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cal-weekday { text-align: center; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); padding-bottom: 0.2rem; } /* min-width: 0 lets grid columns stay equal — otherwise a long unbreakable chip (multi-leg flight chains) forces its column wider and deforms the grid. */ .cal-day { min-width: 0; min-height: 92px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.35rem; display: flex; flex-direction: column; gap: 0.25rem; } .cal-day.clickable { cursor: pointer; transition: border-color 0.12s, box-shadow 0.12s; } .cal-day.clickable:hover { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); } .cal-day.cal-out { background: repeating-linear-gradient(45deg, #f1f5f9, #f1f5f9 8px, #eef2f7 8px, #eef2f7 16px); color: var(--text-faint); } .cal-day-head { display: flex; align-items: center; gap: 0.3rem; } .cal-daynum { font-weight: 700; font-size: 0.82rem; } .cal-out .cal-daynum { color: var(--text-faint); font-weight: 600; } .cal-month { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; color: var(--brand); } .cal-flag { margin-left: auto; color: var(--warn); font-size: 0.75rem; } .cal-chips { display: flex; flex-direction: column; gap: 3px; overflow: hidden; } .cal-chip { display: flex; align-items: center; gap: 0.25rem; min-width: 0; font-size: 0.72rem; padding: 0.12rem 0.35rem; border-radius: 6px; background: color-mix(in srgb, var(--chip) 14%, white); border-left: 3px solid var(--chip); color: #334155; } .cal-chip .chip-price { flex-shrink: 0; } .chip-icon { flex-shrink: 0; } .chip-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* Drag & drop: chips are drag sources, in-range days are drop targets. */ .cal-chip-draggable { cursor: grab; } .cal-chip-draggable:active { cursor: grabbing; } .cal-chip.dragging { opacity: 0.4; } .cal-band-draggable { cursor: grab; } .cal-band-draggable:active { cursor: grabbing; } .cal-band.dragging { opacity: 0.4; } .cal-day-drop { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); background: var(--brand-soft); } /* ---------- Detail grid (map + summary) ---------- */ .detail-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 1.2rem; align-items: start; } .map-section, .summary-section { display: flex; flex-direction: column; } .leaflet-map { height: 420px; width: 100%; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); z-index: 0; } .map-empty { text-align: center; padding: 3rem 1rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 0.4rem; align-items: center; } .map-pin-wrap { background: none; border: none; } .map-pin { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 0.8rem; box-shadow: 0 2px 6px rgba(0,0,0,0.35); border: 2px solid #fff; } .km-label { background: rgba(37, 99, 235, 0.92); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 0.1rem 0.4rem; border-radius: 999px; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,0.3); } .map-popup strong { font-size: 0.95rem; } .map-popup-sub { color: #64748b; font-size: 0.8rem; margin-top: 0.15rem; } .map-popup-loc { font-size: 0.82rem; margin-top: 0.15rem; } .leg-list, .leg-list-empty { margin-top: 1rem; } .leg-list h3 { margin-bottom: 0.5rem; } .leg-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0; border-bottom: 1px solid var(--border); font-size: 0.86rem; } .leg-index { flex-shrink: 0; width: 1.4rem; height: 1.4rem; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand-dark); border-radius: 50%; font-weight: 700; font-size: 0.75rem; } .leg-path { flex: 1; overflow: hidden; text-overflow: ellipsis; } .leg-km { font-weight: 700; color: var(--brand-dark); white-space: nowrap; } /* ---------- Summary ---------- */ .stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; } .stat-tile { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; padding: 0.7rem 0.4rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); } .stat-icon { font-size: 1.1rem; } .stat-value { font-size: 1.35rem; font-weight: 800; } .stat-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; } .km-block { margin: 1rem 0; } .total-km { padding: 0.9rem; text-align: center; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; border-radius: var(--radius-sm); display: flex; flex-direction: column; } .total-km-value { font-size: 1.8rem; font-weight: 800; } .total-km-label { font-size: 0.78rem; opacity: 0.9; } .km-breakdown { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 0.6rem; } .km-row { display: flex; align-items: baseline; gap: 0.5rem; font-size: 0.9rem; } .km-row-icon { flex-shrink: 0; } .km-row-value { font-weight: 700; font-variant-numeric: tabular-nums; } .km-row-label { font-size: 0.82rem; } .leg-mode { flex-shrink: 0; font-size: 0.85rem; } .loc-block h3 { margin-bottom: 0.5rem; } .loc-order { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.9rem; } .area-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.9rem; } .area-item { display: flex; align-items: center; gap: 0.4rem; } .area-dot { flex-shrink: 0; width: 0.7rem; height: 0.7rem; border-radius: 50%; display: inline-block; } /* ---------- Slide-over day editor ---------- */ .overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); z-index: 50; display: flex; justify-content: flex-end; animation: fade 0.15s ease; } @keyframes fade { from { opacity: 0; } to { opacity: 1; } } .slideover { width: min(460px, 100%); height: 100%; background: var(--surface); box-shadow: var(--shadow-lg); padding: 1.3rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; animation: slidein 0.2s ease; } @keyframes slidein { from { transform: translateX(30px); opacity: 0.4; } to { transform: none; opacity: 1; } } .slideover-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem; } .icon-btn { border: none; background: var(--surface-2); border-radius: 8px; width: 2rem; height: 2rem; cursor: pointer; font-size: 1rem; display: inline-flex; align-items: center; justify-content: center; color: var(--text-muted); } .icon-btn:hover { background: var(--border); color: var(--text); } .icon-btn.danger:hover { background: var(--danger-soft); color: var(--danger); } .entry-list { display: flex; flex-direction: column; gap: 0.5rem; } .entry-empty { padding: 0.6rem 0; } .entry-row { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.6rem; border: 1px solid var(--border); border-left: 4px solid var(--chip); border-radius: var(--radius-sm); background: var(--surface-2); } .entry-icon { font-size: 1.1rem; } .entry-body { flex: 1; min-width: 0; } .entry-title { font-weight: 600; } .entry-sub { font-size: 0.8rem; } .entry-details { font-size: 0.84rem; color: var(--text-muted); margin-top: 0.2rem; white-space: pre-wrap; } .entry-actions { display: flex; gap: 0.25rem; } /* Drag-to-reorder: left grip handle plus top/bottom insertion indicators (inset box-shadow lines so they don't shift the row's layout). */ .entry-drag-handle { flex-shrink: 0; display: flex; align-items: center; align-self: stretch; padding: 0 0.1rem; cursor: grab; color: var(--text-faint); font-size: 0.95rem; line-height: 1; letter-spacing: -1px; user-select: none; } .entry-drag-handle:active { cursor: grabbing; } .entry-row.dragging { opacity: 0.4; } .entry-row.drop-before { box-shadow: inset 0 3px 0 var(--brand); } .entry-row.drop-after { box-shadow: inset 0 -3px 0 var(--brand); } .entry-form { display: flex; flex-direction: column; gap: 0.8rem; padding-top: 1rem; border-top: 1px solid var(--border); } .loc-field { position: relative; } .loc-results { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-top: 0.3rem; overflow: hidden; } .loc-results:empty { display: none; } .loc-result { text-align: left; border: none; background: var(--surface); padding: 0.5rem 0.6rem; cursor: pointer; font-size: 0.85rem; border-bottom: 1px solid var(--border); } .loc-result:last-child { border-bottom: none; } .loc-result:hover { background: var(--brand-soft); } .loc-empty { padding: 0.5rem 0.6rem; font-size: 0.85rem; } .loc-selected:empty { display: none; } .loc-chip { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.4rem; background: var(--brand-soft); color: var(--brand-dark); padding: 0.3rem 0.6rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; } .loc-clear { border: none; background: none; cursor: pointer; color: var(--brand-dark); font-size: 1rem; line-height: 1; padding: 0; } /* ---------- Currency + prices ---------- */ .field-currency, .field-price { flex: 0 0 110px; min-width: 90px; } .input-currency { text-transform: uppercase; } .currency-tag { display: inline-block; font-weight: 700; font-size: 0.7rem; letter-spacing: 0.04em; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); padding: 0.05rem 0.4rem; border-radius: 5px; } .chip-price { margin-left: auto; font-size: 0.66rem; font-weight: 700; background: rgba(15,23,42,0.06); color: #334155; padding: 0 0.25rem; border-radius: 4px; white-space: nowrap; } .entry-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; } .entry-price { font-size: 0.82rem; font-weight: 700; color: var(--brand-dark); white-space: nowrap; } .entry-cost { font-size: 0.78rem; margin-top: 0.15rem; } /* ---------- Cost subsection in the day editor ---------- */ .cost-heading { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-muted); margin-top: 0.3rem; } .cost-section { display: flex; flex-direction: column; gap: 0.7rem; } .cost-detail { display: flex; flex-direction: column; gap: 0.7rem; transition: opacity 0.15s; } .cost-detail.disabled { opacity: 0.45; pointer-events: none; } .participants { display: flex; flex-wrap: wrap; gap: 0.4rem; } .part-item { display: inline-flex; align-items: center; gap: 0.35rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 0.2rem 0.6rem 0.2rem 0.45rem; font-size: 0.85rem; cursor: pointer; } .part-check { accent-color: var(--brand); cursor: pointer; } /* ---------- Costs panel ---------- */ .detail-side { display: flex; flex-direction: column; gap: 1.2rem; } .costs-section { display: flex; flex-direction: column; } .costs-empty { text-align: center; padding: 2.4rem 1rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 0.3rem; align-items: center; } .costs-total { margin-bottom: 0.9rem; padding: 0.9rem; text-align: center; background: linear-gradient(135deg, #0f766e, #059669); color: #fff; border-radius: var(--radius-sm); display: flex; flex-direction: column; } .costs-total-value { font-size: 1.7rem; font-weight: 800; } .costs-total-label { font-size: 0.78rem; opacity: 0.9; } .costs-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 0.82rem; padding: 0.5rem 0.7rem; border-radius: var(--radius-sm); margin-bottom: 0.9rem; } .cost-block { margin-top: 1rem; } .cost-block h3 { margin-bottom: 0.5rem; } .bytype-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0; font-size: 0.88rem; } .bytype-dot { width: 0.7rem; height: 0.7rem; border-radius: 3px; flex-shrink: 0; } .bytype-name { flex: 1; } .bytype-amount { font-weight: 700; } .cost-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; } .cost-table th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-faint); padding: 0.3rem 0.4rem; border-bottom: 1px solid var(--border); } .cost-table td { padding: 0.4rem 0.4rem; border-bottom: 1px solid var(--border); } .cost-table .num { text-align: right; font-variant-numeric: tabular-nums; } .net-pos { color: var(--success); font-weight: 700; } .net-neg { color: var(--danger); font-weight: 700; } .net-zero { color: var(--text-muted); } .settle-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; } .settle-from { font-weight: 600; } .settle-arrow { color: var(--brand); font-weight: 700; } .settle-to { font-weight: 600; } .settle-amount { margin-left: auto; font-weight: 700; color: var(--brand-dark); white-space: nowrap; } /* ---------- Flight route builder (day editor) ---------- */ .flight-section { display: flex; flex-direction: column; gap: 0.5rem; } .seg-quick { display: flex; gap: 0.5rem; align-items: flex-end; } .seg-quick-input { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; text-transform: uppercase; letter-spacing: 0.06em; } .seg-list { display: flex; flex-direction: column; gap: 0.6rem; } .seg-row { border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: var(--radius-sm); padding: 0.6rem; background: var(--surface-2); display: flex; flex-direction: column; gap: 0.5rem; } .seg-row-head { display: flex; align-items: center; gap: 0.5rem; } .seg-num { flex-shrink: 0; width: 1.4rem; height: 1.4rem; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand-dark); border-radius: 50%; font-weight: 700; font-size: 0.75rem; } .seg-flightno { flex: 1; text-transform: uppercase; } .seg-airports { display: flex; align-items: flex-start; gap: 0.4rem; } .seg-ap { flex: 1; position: relative; display: flex; flex-direction: column; gap: 0.15rem; } .seg-code { text-transform: uppercase; letter-spacing: 0.05em; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; } .seg-ap.ap-unresolved .seg-code { border-color: var(--danger); box-shadow: 0 0 0 2px var(--danger-soft); } .seg-arrow { color: var(--brand); font-weight: 700; align-self: center; padding-top: 0.3rem; } .ap-name { font-size: 0.72rem; color: var(--text-muted); min-height: 0.9rem; padding-left: 0.1rem; } .ap-results { position: absolute; top: 100%; left: 0; right: 0; z-index: 5; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); overflow: hidden; max-height: 220px; overflow-y: auto; } .ap-results:empty { display: none; } .ap-result { display: flex; gap: 0.5rem; align-items: baseline; width: 100%; text-align: left; border: none; background: var(--surface); padding: 0.45rem 0.6rem; cursor: pointer; border-bottom: 1px solid var(--border); font-size: 0.82rem; } .ap-result:last-child { border-bottom: none; } .ap-result:hover { background: var(--brand-soft); } .ap-code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 700; color: var(--brand-dark); flex-shrink: 0; } .ap-desc { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ap-empty { padding: 0.5rem 0.6rem; font-size: 0.82rem; } .seg-times { display: flex; gap: 0.6rem; } .seg-time { display: flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; color: var(--text-muted); } .seg-time input { width: auto; } /* Flight segments on the day-editor entry rows */ .entry-segments { display: flex; flex-direction: column; gap: 0.1rem; margin-top: 0.25rem; } .entry-seg { display: flex; gap: 0.5rem; font-size: 0.8rem; font-variant-numeric: tabular-nums; } .seg-flight { font-weight: 700; color: var(--brand-dark); } .stat-sub { font-size: 0.66rem; color: var(--brand-dark); font-weight: 700; } /* ---------- Rental details (day editor) ---------- */ .rental-section { display: flex; flex-direction: column; gap: 0.5rem; } .rental-details { display: flex; flex-direction: column; gap: 0.7rem; } .rental-blocks { display: flex; gap: 0.8rem; flex-wrap: wrap; } .rental-block { flex: 1; min-width: 200px; border: 1px solid var(--border); border-left: 3px solid #0891b2; border-radius: var(--radius-sm); padding: 0.6rem; background: var(--surface-2); display: flex; flex-direction: column; gap: 0.5rem; } .rental-block-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-muted); } .entry-rental { font-size: 0.8rem; margin-top: 0.2rem; } /* Secondary "dropoff" calendar chip */ .cal-chip-dropoff { background: transparent; border: 1px dashed var(--chip); border-left: 3px dashed var(--chip); color: var(--text-muted); cursor: pointer; font-style: italic; } .cal-chip-dropoff:hover { background: color-mix(in srgb, var(--chip) 10%, white); } /* Over-budget driven distance */ .km-row.km-over .km-row-value { color: var(--danger); } .km-row.km-over .km-row-icon { filter: grayscale(0.2); } /* ---------- Toasts ---------- */ .toast-host { position: fixed; bottom: 1.2rem; right: 1.2rem; z-index: 100; display: flex; flex-direction: column; gap: 0.5rem; } .toast { padding: 0.7rem 1rem; border-radius: var(--radius-sm); color: #fff; font-size: 0.88rem; font-weight: 600; box-shadow: var(--shadow-md); opacity: 0; transform: translateY(10px); transition: opacity 0.25s, transform 0.25s; max-width: 320px; } .toast.show { opacity: 1; transform: none; } .toast-error { background: var(--danger); } .toast-success { background: var(--success); } /* ---------- Responsive ---------- */ @media (max-width: 1024px) { .detail-grid { grid-template-columns: 1fr; } } @media (max-width: 768px) { .page { padding: 1rem; } .cal-day { min-height: 76px; } .cal-chip .chip-text { display: none; } .cal-chip { justify-content: center; } .stat-grid { grid-template-columns: repeat(3, 1fr); } .invite-form { margin-left: 0; width: 100%; } .invite-form .input { flex: 1; width: auto; } .trip-header-actions { width: 100%; } } @media (max-width: 480px) { .calendar { gap: 3px; } .cal-weekdays, .cal-week-days { gap: 3px; } .cal-week-bands { gap: 2px 3px; --band-h: 1.2rem; } .cal-band { font-size: 0.62rem; padding: 0 0.3rem; } .cal-weekday { font-size: 0.6rem; } .cal-day { min-height: 60px; padding: 0.2rem; } }