/* Breadcrumb (01/12/2026): a single line above a detail page's title. Parent: accent colour, clickable, a touch target
   tall enough for a finger; separator "›" muted; current record: ink, slightly bold. Never wraps the page sideways:
   the current item shrinks with an ellipsis first (360 and 390 px phones keep one line). Same tokens in light and dark. */
.breadcrumb { margin:0 0 8px; min-width:0; max-width:100%; }
.breadcrumb ol { display:flex; align-items:center; flex-wrap:nowrap; gap:6px; margin:0; padding:0; list-style:none; min-width:0; }
.breadcrumb li { display:flex; align-items:center; min-width:0; font-size:15px; line-height:1.3; }
.breadcrumb li + li::before { content:"›"; color:var(--ui-muted); margin-right:6px; font-size:16px; flex:0 0 auto; }
.breadcrumb li:not(:last-child) { flex:0 0 auto; }
.breadcrumb li:last-child { flex:0 1 auto; overflow:hidden; }
.breadcrumb .breadcrumb-link {
  appearance:none; background:none; border:0; border-radius:6px; margin:0; padding:10px 4px; min-height:40px;
  color:var(--ui-accent); font:inherit; font-weight:500; cursor:pointer; white-space:nowrap; text-decoration:none;
}
.breadcrumb .breadcrumb-link:hover { text-decoration:underline; background:var(--ui-hover); }
.breadcrumb .breadcrumb-link:focus-visible { outline:2px solid var(--ui-focus); outline-offset:1px; }
.breadcrumb .breadcrumb-current, .breadcrumb .breadcrumb-text {
  color:var(--ui-ink); font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0;
}
.breadcrumb .breadcrumb-text { font-weight:500; color:var(--ui-muted); }
@media (max-width:420px) { .breadcrumb li { font-size:14px; } }
/* Shared line (01/12/2026): under the top bar, on the work area's own background, outside the white panels and above
   the row of content panel + Lịch sử (both stay level); on phones right above the first panel. Its text starts at the
   main panel's left edge; 8–12 px down to the panel. */
.workspace-breadcrumb { margin:0 0 10px; min-width:0; }
.workspace-breadcrumb[hidden] { display:none; }
.workspace-breadcrumb .breadcrumb { margin:0; }
.workspace-breadcrumb .breadcrumb li:first-child .breadcrumb-link { margin-left:-4px; }
/* Tài xế: the line sits under the driver's own top bar. */
.driver-mode .workspace-breadcrumb { margin:8px 0 10px; }
