/* Svetly panel aplikace GPS na tmavem landingu (nahled knihy jizd, _LogbookPreview).
   Vzhled podle leveho panelu aplikace (shared-panels.css: hlavicka, souhrn); seznam jizd
   kresli tripLogbook.css aplikace (kopie v product/). */
.app-preview {
    --brand-primary: #335577;
    background: #fff; color: #1e293b;
    border-radius: 0 0 1rem 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px; line-height: 1.35;
    overflow: hidden;
}
.app-preview .material-icons { font-size: 20px; line-height: 1; }
.app-preview-muted { color: #64748b; }
.app-preview-check { color: var(--brand-primary); font-size: 18px !important; }
.app-preview-header {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-bottom: 1px solid #e2e8f0;
}
.app-preview-title { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.app-preview-title .material-icons { color: var(--brand-primary); }
.app-preview-vehicle {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px;
    border: 1px solid #e2e8f0; border-radius: 6px; padding: 4px 8px;
}
.app-preview-vehicle > .material-icons:first-child { color: var(--brand-primary); }
.app-preview-vehicle-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-preview-vehicle-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-preview-vehicle-text span + span { color: #64748b; font-size: 12px; }
.app-preview-summary {
    display: grid; grid-template-columns: 1fr 1.4fr 0.8fr; gap: 4px 12px;
    margin: 10px 12px; padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 6px;
}
.app-preview-label { color: #64748b; font-size: 11px; white-space: nowrap; }
.app-preview-label i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 3px; vertical-align: 0; }
.app-preview-value { font-weight: 700; margin-top: 2px; white-space: nowrap; }
.app-preview-driver { margin-left: auto; color: #475569; white-space: nowrap; }
.app-preview .tl-list-header { margin: 0 12px; border-radius: 6px 6px 0 0; }
.app-preview .tl-list > :not(.tl-list-header) { margin: 0 12px; }
.app-preview .tl-day-row { position: static; }
.app-preview .tl-list { padding-bottom: 8px; }
.app-preview-header > .material-icons, .app-preview-title { flex-shrink: 0; }
.app-preview .tl-day-info { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) {
    .app-preview-header { gap: 8px; padding: 8px 10px; }
    .app-preview-header > .material-icons { display: none; }
    .app-preview-summary { grid-template-columns: 1fr 1fr; margin: 8px 10px; }
    .app-preview-summary > :nth-child(2) { display: none; }
    .app-preview .tl-list-header, .app-preview .tl-list > :not(.tl-list-header) { margin: 0 6px; }
    .app-preview .tl-day-stat .app-preview-hide-sm { display: none; }
    .app-preview .tl-trip-line2 { padding-left: 54px; }
    .app-preview .tl-addr { max-width: none; }
}

/* Horni lista aplikace v nahledu (_AppWindowTop, ANO-39): stejne poradi jako UnifiedTopNav aplikace —
   logo, Mapa, Moduly (rozbalovaci, odkazy do dema), vpravo uzivatel. Barva = barva znacky instance. */
.app-topbar {
    position: relative; z-index: 5;
    display: flex; align-items: center; gap: 4px;
    height: 44px; padding: 0 10px;
    background: var(--brand-500); color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 13px;
}
.app-topbar .material-icons { font-size: 20px; line-height: 1; }
.app-topbar-logo { display: inline-flex; margin-right: 6px; color: #fff; }
.app-topbar-btn {
    display: inline-flex; align-items: center; gap: 2px; height: 32px; padding: 0 8px;
    border-radius: 6px; color: rgba(255,255,255,.85); cursor: pointer; list-style: none; user-select: none;
}
.app-topbar-btn::-webkit-details-marker { display: none; }
.app-topbar-btn:hover, .app-topbar-menu[open] > .app-topbar-btn { background: rgba(255,255,255,.15); color: #fff; }
.app-topbar-btn .material-icons { font-size: 18px; }
.app-topbar-menu { position: relative; }
.app-topbar-dropdown {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px; padding: 6px;
    background: #fff; color: #1e293b; border-radius: 8px; box-shadow: 0 12px 30px -8px rgba(15,23,42,.45);
}
.app-topbar-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: #1e293b; white-space: nowrap; }
.app-topbar-item:hover { background: #f1f5f9; }
.app-topbar-item .material-icons { color: var(--brand-500); }
.app-topbar-user { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.9); white-space: nowrap; }
@media (max-width: 480px) {
    .app-topbar-user-name { display: none; }
}
