/* Fluxo de viagens 2.0: lista primeiro, detalhes depois. */
#home>.home-new-flow{display:grid;gap:22px}
#home .home-new-flow>.home-welcome{margin:0!important}
#home>.home-new-flow~*{display:none!important}
#home.view>.home-new-flow~#homeTripArea,#home.view>.home-new-flow~#homeActions,#home.view>.home-new-flow~#homeVisitsSection,#home.view>.home-new-flow~#completionCard,#home.view>.home-new-flow~#homeRecentHeading,#home.view>.home-new-flow~#expenseList{display:none!important}
.trip-hub-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:12px 2px 2px}
.trip-hub-header h2{margin:4px 0;font-size:clamp(30px,5vw,42px);letter-spacing:-.04em;color:#291b1d}
.trip-hub-header p{margin:0;color:#796c6d}
.trip-hub-add{display:none!important}
.trip-hub-list{display:grid;gap:12px}
.trip-hub-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:15px;width:100%;padding:18px;border:1px solid #eadfdd;border-radius:22px;background:#fff;text-align:left;box-shadow:0 8px 24px rgba(55,31,34,.06);transition:.18s ease}
.trip-hub-card:hover{transform:translateY(-2px);border-color:#d5aaa7;box-shadow:0 13px 28px rgba(55,31,34,.1)}
.trip-hub-card.current{background:linear-gradient(135deg,#741523,#a0343d);border-color:transparent;color:#fff}
.trip-hub-label,.trip-hub-open{display:none}
.trip-hub-card.current{position:relative;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"label label" "code value" "copy value" "open open";align-content:center;align-items:start;min-height:210px;padding:27px 30px;overflow:hidden;box-shadow:0 20px 46px rgba(116,21,35,.25)}
.trip-hub-card.current:before{content:"";position:absolute;right:-75px;top:-105px;width:250px;height:250px;border:38px solid rgba(255,255,255,.075);border-radius:50%;pointer-events:none}
.trip-hub-card.current>*{position:relative;z-index:1}
.trip-hub-card.current .trip-hub-label{display:block;grid-area:label;margin-bottom:13px;color:#f4d9d7;font-size:12px;font-weight:700}
.trip-hub-card.current .trip-hub-code{grid-area:code;justify-self:start;align-self:start;min-width:0;margin-bottom:9px;padding:8px 11px}
.trip-hub-card.current .trip-hub-copy{grid-area:copy;align-self:start}.trip-hub-card.current .trip-hub-copy strong{font-size:clamp(24px,4vw,31px);line-height:1.08;white-space:normal}.trip-hub-card.current .trip-hub-copy small{margin-top:2px;font-size:13px;white-space:normal}
.trip-hub-card.current .trip-hub-value{grid-area:value;align-self:center;justify-items:end;padding-left:24px}.trip-hub-card.current .trip-hub-value strong{font-size:clamp(25px,4vw,34px);letter-spacing:-.04em}.trip-hub-card.current .trip-hub-value small{font-size:12px}
.trip-hub-card.current .trip-hub-open{display:flex;grid-area:open;align-items:center;justify-content:center;gap:8px;margin-top:19px;padding-top:14px;border-top:1px solid rgba(255,255,255,.16);color:#fff;font-size:12px;font-weight:800}.trip-hub-card.current .trip-hub-open b{font-size:22px;line-height:1}
.trip-hub-code{display:grid;place-items:center;min-width:88px;padding:10px 11px;border-radius:13px;background:#f6e8e6;color:#741523;font-size:12px;font-weight:900;letter-spacing:.06em}
.trip-hub-card.current .trip-hub-code{background:rgba(255,255,255,.15);color:#fff}
.trip-hub-copy{display:grid;gap:5px;min-width:0}.trip-hub-copy strong{font-size:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trip-hub-copy small{color:#827475;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trip-hub-card.current .trip-hub-copy small{color:#f1deda}
.trip-hub-value{display:grid;justify-items:end;gap:4px}.trip-hub-value strong{font-size:18px}.trip-hub-value small{color:#907f80}.trip-hub-card.current .trip-hub-value small{color:#f1deda}
.trip-hub-empty{display:grid;place-items:center;gap:12px;min-height:220px;padding:30px;border:2px dashed #dfcfcd;border-radius:24px;background:#fff;color:#806f71;text-align:center}.trip-hub-empty b{font-size:20px;color:#382629}.trip-hub-empty button{padding:12px 18px;border:0;border-radius:13px;background:#8d202b;color:#fff;font-weight:800}
.trip-detail-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:15px;margin-bottom:18px}.trip-detail-header>button{border:0;border-radius:14px;background:#f2e6e4;color:#741523;font-weight:900}.trip-detail-header>button:first-child{width:44px;height:44px;font-size:32px}.trip-detail-edit{padding:11px 15px}.trip-detail-header h2{margin:2px 0;font-size:clamp(25px,5vw,36px);letter-spacing:-.035em}.trip-detail-header small{color:#7a6c6d}.trip-code{color:#8d202b;font-size:11px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.trip-detail-total{position:relative;display:grid;gap:8px;overflow:hidden;padding:25px;border-radius:26px;background:linear-gradient(135deg,#741523,#a43a43);color:#fff;box-shadow:0 16px 38px rgba(116,21,35,.22)}.trip-detail-total:after{content:"";position:absolute;right:-45px;top:-65px;width:180px;height:180px;border:28px solid rgba(255,255,255,.08);border-radius:50%}.trip-detail-total span,.trip-detail-total small{position:relative;z-index:1;color:#f2deda}.trip-detail-total strong{position:relative;z-index:1;font-size:38px;letter-spacing:-.04em}
.trip-category-section,.trip-expense-section{margin-top:28px}.trip-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.trip-category-card{display:grid;gap:8px;min-height:112px;padding:16px;border:1px solid #eadfdd;border-radius:19px;background:#fff;text-align:left;color:#342326}.trip-category-card span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:800}.trip-category-card strong{font-size:17px;color:#741523}.trip-category-card small{color:#8a7b7c}.trip-category-card.active{border-color:#8d202b;background:#f8e9e7;box-shadow:inset 0 0 0 1px #8d202b}
.trip-category-grid>.detail-expense-empty{grid-column:1/-1}
.detail-expense-list{display:grid;gap:10px}.detail-expense-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:13px;width:100%;padding:15px;border:1px solid #eadfdd;border-radius:18px;background:#fff;text-align:left}.detail-expense-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:#f3e6e4;color:#8d202b;font-size:18px;font-weight:900}.detail-expense-copy{display:grid;gap:4px;min-width:0}.detail-expense-copy strong,.detail-expense-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.detail-expense-copy small{color:#837576}.detail-expense-value{display:grid;justify-items:end;gap:4px}.detail-expense-value small{color:#8d202b;font-weight:800}.detail-expense-empty{padding:28px;border:2px dashed #dfcfcd;border-radius:20px;color:#837576;text-align:center}
.bottom-nav #contextAddButton b{font:inherit}
@media(max-width:620px){
  #home>.home-new-flow{gap:13px}#home .home-new-flow>.home-welcome{display:grid;grid-template-columns:auto 1fr;align-items:baseline;column-gap:7px;row-gap:4px;padding:2px 4px 8px}#home .home-new-flow>.home-welcome span{font-size:14px}#home .home-new-flow>.home-welcome h2{font-size:25px!important;margin:0!important}#home .home-new-flow>.home-welcome p{grid-column:1/-1;margin:0!important;font-size:13px}.trip-hub-header{align-items:center;padding-top:5px}.trip-hub-header h2{font-size:32px}.trip-hub-header p{font-size:13px;line-height:1.45}.trip-hub-add{flex-basis:52px;width:52px;height:52px;border-radius:17px}
  .trip-hub-card{grid-template-columns:minmax(0,1fr) auto;padding:15px}.trip-hub-code{grid-column:1/-1;justify-self:start;min-width:0;padding:7px 9px}.trip-hub-copy strong{font-size:16px}.trip-hub-value strong{font-size:16px}
  .trip-detail-header{grid-template-columns:auto minmax(0,1fr)}.trip-detail-edit{grid-column:2;justify-self:start;padding:7px 10px;font-size:11px}.trip-detail-total{padding:21px}.trip-detail-total strong{font-size:32px}
  .trip-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.trip-category-card{min-height:98px;padding:14px}.detail-expense-card{grid-template-columns:auto minmax(0,1fr)}.detail-expense-value{grid-column:2;justify-items:start;grid-auto-flow:column;align-items:center;gap:8px}
  .trip-hub-card.current{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"label label" "code code" "copy value" "open open";min-height:225px;padding:22px}.trip-hub-card.current .trip-hub-code{grid-column:auto}.trip-hub-card.current .trip-hub-copy strong{font-size:23px}.trip-hub-card.current .trip-hub-value{padding-left:14px}.trip-hub-card.current .trip-hub-value strong{font-size:24px}.trip-hub-card.current .trip-hub-open{justify-content:flex-start}
}
