/* Module Voyages & dépenses (fusion Tripcount) */
.tabbar { grid-template-columns: repeat(6, 1fr) !important; }
.tabbar button span { font-size: 11px; }
#list-tabs [data-tab=trips] { display: none; }

.tc-hero { background: linear-gradient(135deg, #264653, #2a6f6b 60%, #2b8a7f); color: #fff; border-radius: 22px; padding: 18px; position: relative; overflow: hidden; }
.tc-hero:after { content: "✈"; position: absolute; right: -8px; top: -22px; font-size: 120px; opacity: .08; transform: rotate(-20deg); }
.tc-hero .lbl { opacity: .85; font-size: 13px; }
.tc-hero .big { font-size: 32px; font-weight: 800; letter-spacing: -1px; margin: 2px 0; }
.tc-hero .tc-hrow { display: flex; gap: 18px; margin-top: 12px; flex-wrap: wrap; }
.tc-hero .tc-hrow div { font-size: 12px; opacity: .9; }
.tc-hero .tc-hrow b { display: block; font-size: 17px; }

.tc-nag { display: flex; align-items: center; gap: 10px; background: var(--wish-soft); border-radius: 14px; padding: 10px 12px; margin-top: 12px; font-size: 13px; }
.tc-nag .btn { padding: 8px 12px; font-size: 13px; flex: none; margin: 0 0 0 auto; width: auto; }
.tc-nag > span { flex: 1; }

.tc-chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 2px 6px; scrollbar-width: none; }
.tc-chips::-webkit-scrollbar { display: none; }
.tc-chips.wrap { flex-wrap: wrap; overflow: visible; padding-top: 4px; }
.tc-chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 13px; white-space: nowrap; font-size: 13px; color: var(--ink); }
.tc-chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.tc-sum { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 14px; padding: 10px 12px; margin-top: 6px; font-size: 14px; }
.tc-sum > div { flex: 1; }
.tc-sum .btn { padding: 8px 12px; font-size: 13px; flex: none; width: auto; margin: 0; }

.tc-year { font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 18px 4px 8px; display: flex; justify-content: space-between; }
.tc-trip { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; background: var(--card); border: 0; border-radius: 16px; padding: 12px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.04); color: var(--ink); }
.tc-flag { min-width: 44px; height: 44px; border-radius: 12px; background: var(--bg); display: flex; align-items: center; justify-content: center; gap: 2px; flex: none; padding: 0 6px; }
.tc-flag.big { min-width: 54px; height: 54px; }
.tc-flag img.flag { width: 22px; height: 16px; }
.tc-mid { flex: 1; min-width: 0; }
.tc-nm { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-dt { font-size: 12px; color: var(--muted); }
.tc-amt { text-align: right; font-weight: 800; font-size: 15px; }
.tc-amt small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }
.tc-bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; display: flex; margin-top: 7px; }
.tc-bar span { display: block; height: 100%; }
.tc-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; }
.tc-badge.todo { background: #ffe7df; color: #c8553a; }
.tc-badge.live { background: #dff5ea; color: #2e9d6a; }
.tc-badge.tag { background: var(--bg); padding: 1px 5px; }

.tc-fab { position: absolute; right: 10px; bottom: calc(var(--tb, 54px) + 10px); z-index: 6; width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--visited); color: #fff; font-size: 34px; line-height: 1; box-shadow: 0 6px 18px rgba(231,111,81,.45); display: none; }
.tc-fab.on { display: block; }
#tc-trips-body { padding-bottom: 96px; }

.tc-sh-head { display: flex; gap: 12px; align-items: center; }
.tc-icon { border: 0; background: var(--bg); width: 40px; height: 40px; border-radius: 12px; font-size: 18px; flex: none; }
.tc-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.tc-kpi { background: var(--card); border-radius: 14px; padding: 10px 12px; }
.tc-kpi .v { font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.tc-kpi .l { font-size: 12px; color: var(--muted); }
.tc-donut { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; color: var(--ink); }
.tc-donut svg { flex: none; }
.tc-legend { flex: 1; min-width: 150px; display: grid; gap: 5px; font-size: 13px; }
.tc-legend div { display: flex; align-items: center; gap: 6px; }
.tc-legend b { margin-left: auto; }
.tc-dot { width: 10px; height: 10px; border-radius: 4px; flex: none; }
.tc-tip { background: var(--wish-soft); border-radius: 14px; padding: 10px 12px; font-size: 13px; margin: 10px 0; line-height: 1.45; }
.tc-it { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; color: var(--ink); font-size: 14px; }
.tc-it:last-child { border-bottom: 0; }
.tc-it .x { flex: 1; min-width: 0; }
.tc-it .x div:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-ci { font-size: 20px; }
.tc-x { border: 0; background: none; color: var(--muted); font-size: 14px; padding: 4px 6px; }
.tc-rank { width: 24px; height: 24px; border-radius: 8px; background: var(--bg); display: grid; place-items: center; font-weight: 800; font-size: 12px; flex: none; }
.tc-cities { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 14px; }
.tc-facts { display: grid; gap: 8px; }
.tc-fact { display: flex; gap: 12px; align-items: center; margin-top: 0; }
.tc-fact i { font-style: normal; font-size: 26px; }
.tc-lbl { display: block; font-size: 12px; color: var(--muted); margin: 12px 2px 5px; font-weight: 600; }
.tc-amount { font-size: 36px !important; font-weight: 800; text-align: center; }
.tc-catgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tc-cat { border: 2px solid transparent; background: var(--card); border-radius: 14px; padding: 8px 2px; font-size: 11px; color: var(--ink); }
.tc-cat i { display: block; font-style: normal; font-size: 22px; }
.tc-cat.on { border-color: var(--visited); background: var(--visited-soft); }
.tc-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tc-newtag { display: flex; gap: 6px; margin-top: 8px; }
.tc-newtag .btn { flex: none; padding: 0 14px; width: auto; margin: 0; }
.tc-check { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; }
.tc-check input { width: 20px; height: 20px; accent-color: var(--visited); }
.tc-imp { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.tc-imp:last-child { border-bottom: 0; }
.tc-imp.off { opacity: .45; }
.tc-imp .x { flex: 1; min-width: 0; }
.tc-imp .x div:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-imp select { border: 1px solid var(--line); border-radius: 8px; padding: 4px; background: var(--card); color: var(--ink); font-size: 12px; max-width: 108px; }
.tc-imp input { width: 20px; height: 20px; accent-color: var(--visited); flex: none; }
.tc-set { padding-bottom: 0 !important; }
.tc-set .card { margin-top: 0; }

#tc-mapbanner { position: absolute; top: calc(var(--hh, 50px) + 52px); left: 50%; transform: translateX(-50%); z-index: 600; display: none; align-items: center; gap: 8px; background: #ff6b4a; color: #fff; padding: 8px 8px 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.18); max-width: calc(100% - 24px); }
#tc-mapbanner.on { display: flex; }
#tc-mapbanner span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tc-mapbanner button { border: 0; background: rgba(255,255,255,.25); color: #fff; width: 26px; height: 26px; border-radius: 50%; flex: none; }

.tc-sh-head h3 { font-size: 19px; }
.btn-row .btn { margin-top: 0; }
