/* v41 navigation: Today · Jobs · (+) · Clock · Money · More, quick-add sheet, Today, More, Ready to bill */
.topbar nav.nav5 a[hidden] { display: none; }
.topbar nav .nav-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; min-height: 52px; padding: .25rem .2rem; border: 0; background: none;
  font: inherit; font-size: .72rem; font-weight: 650; color: var(--muted); cursor: pointer; border-radius: var(--radius-md); -webkit-tap-highlight-color: transparent;
}
.topbar nav .nav-add .nav-scan-disc {
  display: grid; place-items: center; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%; color: var(--accent-ink);
  background: linear-gradient(145deg, var(--accent-2), var(--accent)); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 45%, transparent), 0 0 0 5px var(--bg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur);
}
.topbar nav .nav-add .nav-scan-disc .icon svg { width: 28px; height: 28px; stroke-width: 2.4; }
.topbar nav .nav-add:active .nav-scan-disc { transform: scale(.9) rotate(90deg); }
/* ring on the disc, not the cell */
.topbar nav .nav-add:focus, .topbar nav .nav-add:focus-visible { outline: none; }
.topbar nav .nav-add:focus-visible .nav-scan-disc { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 3px; }
.topbar nav a { min-width: 44px; }
@media (min-width: 720px) {
  .topbar nav .nav-add { order: -1; margin-bottom: .4rem; min-height: 62px; }
  .topbar nav .nav-add .nav-scan-disc { margin: 0; width: 46px; height: 46px; box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 40%, transparent); }
}

/* quick-add sheet */
.qa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; padding-bottom: calc(.4rem + var(--safe-b, 0px)); }
.qa-item { display: flex; flex-direction: column; align-items: center; gap: .25rem; min-height: 104px; padding: .8rem .3rem; border-radius: var(--radius-md);
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; cursor: pointer; text-align: center; transition: transform var(--dur) var(--ease), background var(--dur); }
.qa-item:active { transform: scale(.96); background: var(--surface-3); }
.qa-item b { font-size: .95rem; }
.qa-item small { color: var(--muted); font-size: .76rem; line-height: 1.2; }
.qa-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); margin-bottom: .15rem; }
.qa-item.hot .qa-ic { background: linear-gradient(145deg, var(--accent-2), var(--accent)); color: var(--accent-ink); }
.qa-jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.qa-job { width: 100%; display: flex; align-items: center; gap: .7rem; min-height: 52px; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-2); font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.qa-job span { flex: 1; font-weight: 650; }

/* segment rows inside an area */
.home-tabs.seg41 .home-tab { min-height: 44px; font-size: .9rem; position: relative; }
.home-tabs.seg41.money .home-tab { font-size: .84rem; gap: .3rem; }
@media (max-width: 380px) { .home-tabs.seg41.money .home-tab .icon { display: none; } }

/* Today */
.today .td-hello { align-items: flex-end; }
.td-jobs-pill { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: 0 .9rem; border-radius: 99px; background: var(--surface-3); color: var(--ink-2); font-weight: 700; font-size: .85rem; white-space: nowrap; text-decoration: none; }
.today a.card.td-clock { display: grid !important; flex-direction: initial; grid-template-columns: auto 1fr auto; align-items: center; gap: .85rem; padding: 1rem 1.05rem; text-decoration: none; color: var(--ink); margin-bottom: 1rem; min-height: 88px; }
.td-clock.on { background: linear-gradient(135deg, color-mix(in srgb, var(--ok) 16%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, var(--ok) 30%, var(--line)); }
.td-clock-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--surface-3); color: var(--muted); }
.td-clock.on .td-clock-ic { background: var(--ok); color: #fff; animation: td-pulse 2.4s ease-in-out infinite; }
@keyframes td-pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--ok) 18%, transparent); } }
.td-clock-txt { display: flex; flex-direction: column; min-width: 0; }
.td-clock-txt small { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; color: var(--muted); }
.td-clock-txt b { font-family: var(--font-display); font-size: 1.45rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.td-clock-txt span { color: var(--ink-2); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-clock-cta { display: inline-flex; align-items: center; gap: .2rem; min-height: 44px; padding: 0 .9rem; border-radius: 99px; font-weight: 800; font-size: .9rem; color: var(--accent-ink); background: linear-gradient(145deg, var(--accent-2), var(--accent)); white-space: nowrap; }
.td-clock.on .td-clock-cta { background: var(--ink); color: var(--surface); }
.td-card { margin-bottom: 1rem; }
.td-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .35rem; }
.td-head h2 { display: flex; align-items: center; gap: .45rem; font-size: 1.05rem; margin: 0; }
.td-count { min-width: 26px; height: 26px; padding: 0 .5rem; border-radius: 99px; display: inline-grid; place-items: center; background: var(--surface-3); color: var(--ink-2); font-weight: 800; font-size: .8rem; }
.td-count.warn { background: var(--warn-bg); color: var(--warn); }
.td-list { list-style: none; margin: 0; padding: 0; }
.td-list li + li { border-top: 1px solid var(--line); }
.td-list a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; min-height: 56px; padding: .5rem 0; color: var(--ink); text-decoration: none; }
.td-list a:active { opacity: .7; }
.td-list a > div { display: flex; flex-direction: column; min-width: 0; }
.td-list b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-list small { color: var(--muted); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-list a > .icon { color: var(--muted); }
.td-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--line-2); margin: 0 .2rem; }
.td-dot.st-in-progress { background: var(--info); } .td-dot.st-blocked { background: var(--bad); }
.td-att-ic, .td-act-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--surface-3); color: var(--ink-2); }
.att-bad .td-att-ic { background: var(--bad-bg); color: var(--bad); } .att-warn .td-att-ic { background: var(--warn-bg); color: var(--warn); }
.td-act time { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.td-empty { color: var(--muted); margin: .4rem 0 .2rem; } .td-empty.ok { color: var(--ok); font-weight: 650; display: flex; align-items: center; gap: .2rem; }
.td-more { color: var(--muted); font-size: .85rem; margin: .3rem 0 0; }

/* More */
.more-group h2 { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 1.1rem .3rem .45rem; }
.more-list { list-style: none; margin: 0; padding: .2rem 1rem; }
.more-list li + li { border-top: 1px solid var(--line); }
.more-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; min-height: 60px; color: var(--ink); text-decoration: none; }
.more-row:active { opacity: .7; }
.more-row div { display: flex; flex-direction: column; min-width: 0; }
.more-row small { color: var(--muted); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.more-row > .icon { color: var(--muted); }
.more-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.more-foot { text-align: center; margin: 1.4rem 0 .5rem; font-size: .8rem; }

/* Ready to bill */
.rtb-hero { display: flex; flex-direction: column; gap: .1rem; margin-bottom: .9rem; }
.rtb-hero small { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; color: var(--muted); }
.rtb-hero b { font-family: var(--font-display); font-size: 2rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rtb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.rtb-list a.card.rtb-row { display: flex !important; flex-direction: row; align-items: center; justify-content: space-between; gap: .8rem; min-height: 64px; color: var(--ink); text-decoration: none; }
.rtb-row > div { display: flex; flex-direction: column; min-width: 0; }
.rtb-row small { color: var(--muted); }
.rtb-amt { display: inline-flex; align-items: center; gap: .3rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rtb-flag { color: var(--warn); font-size: .8rem; font-weight: 700; display: inline-flex; align-items: center; margin-top: .15rem; }
@media (prefers-reduced-motion: reduce) { .td-clock.on .td-clock-ic { animation: none; } }
.qa-job span { display: flex; flex-direction: column; }
.qa-last { font-size: .75rem; color: var(--accent); font-weight: 700; }
.qa-item.hot.on .qa-ic { background: var(--ink); color: var(--surface); }
/* crew Today: keep the job pill on the greeting row */
.today .td-hello { flex-wrap: nowrap; gap: .6rem; }
.today .td-hello > div { min-width: 0; }
.today .td-hello h1 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
.td-jobs-pill { flex: none; }
@media (min-width: 720px) {
  .today { max-width: 760px; margin-inline: auto; }
  .qa-grid { grid-template-columns: repeat(3, minmax(0, 160px)); justify-content: center; }
}
.td-att b { white-space: normal; line-height: 1.25; }

/* v42 PDF actions: Save PDF + Share side by side */
.pdf-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.pdf-actions .btn { min-height: 48px; justify-content: center; gap: .45rem; }
.pdf-actions.block .btn { flex: 1 1 140px; }
.pdf-actions .btn[disabled] { opacity: .7; cursor: progress; }
.pdf-status { margin: .5rem 0 0; }
