.favorites-panel { margin:12px 0; padding:12px; border:1px solid #cbd5e1; border-radius:10px; background:#f8fafc; }
.favorites-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.favorites-heading a { color:#1d4ed8; font-weight:600; }
.favorites-panel summary { cursor:pointer; padding:10px 0; }
.favorites-panel #favoritesMessage { color:#64748b; font-size:12px; margin-top:5px; }
.favorites-panel #favoritesReturns:not(:empty) { margin-top:10px; padding:8px; border:1px solid #86efac; border-radius:7px; background:#ecfdf5; color:#166534; font-weight:600; }
.favorite-star { display:inline-flex; align-items:center; justify-content:center; vertical-align:middle; width:36px; min-width:36px; height:36px; padding:0 !important; margin:0; border:0 !important; border-radius:0 !important; background:transparent !important; box-shadow:none !important; color:#64748b; font-size:27px; line-height:1; cursor:pointer; }
.favorite-star.selected { color:#d08a00; }
.favorite-star:hover { color:#b45309; }
.popup-vehicle-actions { display:flex; align-items:center; flex-wrap:nowrap; gap:10px; }
.popup-vehicle-actions a { white-space:nowrap; }
.popup-vehicle-actions .favorite-star { flex:0 0 32px; width:32px; min-width:32px; height:32px; }
.favorite-star:focus-visible { outline:2px solid #2563eb; outline-offset:1px; }
.ux-table .c-favorite { width:42px !important; text-align:center; vertical-align:middle; padding:4px; }
.favorites-map-link { font-weight:600; white-space:nowrap; }
#favoritesToast { position:fixed; bottom:18px; right:18px; left:auto; max-width:calc(100vw - 36px); padding:10px 14px; border-radius:8px; background:#1e293b; color:#fff; box-shadow:0 3px 12px #0003; z-index:9999; font-size:14px; }
.favorites-page { max-width:1400px; margin:0 auto; }
.favorites-page #favoritesMap { width:100%; height:55vh; min-height:300px; max-height:620px; border:1px solid #cbd5e1; border-radius:10px; margin:12px 0 20px; }
.favorites-page #favoritesList { display:block; }
.favorites-table-wrap { border:1px solid #cbd5e1; border-radius:12px; overflow:auto; }
.favorites-table { font-size:13px; table-layout:auto; }
.favorites-table th { background:#f8fafc; padding:8px; font-size:12px; }
.favorites-table td { padding:9px 7px; vertical-align:middle; }
.favorites-table .c-bus { width:7%; }
.favorites-table .c-matricula { width:12%; }
.favorites-table .c-chassis { width:24%; }
.favorites-table .c-linha { width:8%; }
.favorites-table .c-destino { width:22%; }
.favorites-table .c-min { white-space:nowrap; }
.favorites-table a { color:#2563eb; text-decoration:none; }
.favorites-table .ux-bus-link { font-weight:700; }
.favorites-table .ux-photo-btn { display:inline-flex; align-items:center; justify-content:center; border-radius:8px; background:#2563eb; color:#fff; padding:8px 12px; font-weight:600; font-size:12px; white-space:nowrap; }
.favorites-table .ux-photo-ok { display:inline-block; padding:7px 10px; border-radius:20px; color:#1d4ed8; background:#dbeafe; }
.favorites-table .ux-row-photo td { background:#eaf3ff; }
.favorites-table .ux-row-retired td { background:#e5e7eb !important; }
.favorite-age { display:inline-block; padding:3px 8px; border-radius:20px; font-size:11px; font-weight:600; background:#f1f5f9; color:#64748b; }
.favorite-age.warn { background:#fff7ed; color:#b45309; }
.favorite-age.live { background:#eef2ff; color:#4338ca; }
.favorite-vehicle-card { border:1px solid #b6c6da; border-radius:10px; background:#fff; padding:12px; line-height:1.5; }
.favorite-card-heading { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.favorite-card-heading strong { font-size:20px; }
.favorite-card-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:10px; }
.favorite-card-actions button { padding:8px 12px; border:1px solid #cbd5e1; border-radius:7px; background:#f8fafc; color:#1d4ed8; min-height:38px; }
.favorite-card-actions .favorite-remove { color:#b91c1c; }
.favorite-position-dot { width:18px; height:18px; box-sizing:border-box; border:2px solid #fff; border-radius:50%; background:#2563eb; box-shadow:0 1px 4px #0004; }
.favorite-position-dot.estimated { background:#f59e0b; }
.favorite-marker-returned .favorite-position-dot { outline:4px solid #86efac; }
.favorite-item { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:6px 0; border-bottom:1px solid #e2e8f0; }
.favorite-item > span:first-of-type { flex:1; min-width:120px; }
.favorite-state { color:#64748b; font-size:12px; }
.favorite-state.online { color:#15803d; font-weight:600; }
.favorite-returned { background:#ecfdf5 !important; box-shadow:inset 3px 0 #16a34a; }
tr.favorite-returned > td { background:#ecfdf5 !important; }
tr.ux-row-retired.favorite-returned > td { background:#e5e7eb !important; }
.favorite-marker-label { position:absolute; bottom:23px; left:50%; transform:translateX(-50%); background:rgba(255,255,255,.96); border:1px solid #94a3b8; border-radius:6px; padding:3px 7px; text-align:center; white-space:nowrap; max-width:190px; overflow:hidden; text-overflow:ellipsis; color:#0f172a; box-shadow:0 1px 4px #0002; font-size:12px; line-height:1.2; }
.favorite-marker-label strong { display:block; font-size:15px; }
.favorite-marker-label img { max-width:72px; max-height:22px; vertical-align:middle; }
.favorite-marker-wrap { position:relative; width:18px; height:18px; }
.favorite-marker-returned .bus-marker { outline:4px solid #86efac; }
.favorite-marker-returned .favorite-marker-label { border-color:#16a34a; background:#ecfdf5; }
@media(max-width:760px) {
    .favorites-page .favorites-table-wrap { border:0; overflow:visible; }
    .favorites-page .favorites-table tbody td:empty { display:none; }
    .mobile-transport .ux-table td.c-favorite { order:8; display:flex; flex:0 0 40px; justify-content:center; align-items:center; padding:4px 0; }
    .mobile-transport .ux-table td.c-favorite::before { display:none; }
    .mobile-transport .ux-table td.c-favorite.mobile-field-empty { display:none; }
    .mobile-transport .ux-table td.c-foto { order:9; }
    .mobile-transport .ux-table td.c-detalhe { order:10; }
    .favorite-star { width:36px; min-width:36px; height:36px; }
    .mobile-transport .ux-table tbody tr.ux-row-retired.favorite-returned { background:#e5e7eb !important; }
    .ux-row-retired.favorite-returned > td { background:#e5e7eb !important; }
}

.fleet-prefix { color: #94a3b8 !important; font-weight: 400 !important; }
