/* Trip Desk look: the full width with the menu along the bottom on a laptop; title bar, big button and bottom tabs on a
   phone. Clean, Soft and Dark come from the app's theme setting. Every rule sits under #app .tx, so the movers screens
   are not touched. */
.tx { --tx-bg:#eef1f5; --tx-surface:#fff; --tx-surface-2:#f5f7fa; --tx-ink:#101828; --tx-mute:#586272; --tx-line:#e2e6ec; --tx-brand:#d9500a; --tx-on-brand:#fff; --tx-r:14px; --tx-shadow:0 1px 2px rgba(16,24,40,.07),0 4px 14px rgba(16,24,40,.06);
  --tx-new:#1d4ed8; --tx-load:#a14e07; --tx-done:#15803d; --tx-bad:#c2261c; }
:root[data-theme="emboss"] .tx, :root[data-theme="mix"] .tx, :root[data-theme="ink"] .tx { --tx-bg:#e8dbbd; --tx-surface:#ede2c8; --tx-surface-2:#e3d4b2; --tx-ink:#1d1a14; --tx-mute:#5f5744; --tx-line:rgba(90,70,30,.2); --tx-r:22px; --tx-shadow:5px 5px 11px rgba(150,120,60,.32),-4px -4px 10px rgba(255,252,240,.85); }
:root[data-theme="dark"] .tx { --tx-bg:#0d1117; --tx-surface:#171d26; --tx-surface-2:#202936; --tx-ink:#eef2f7; --tx-mute:#9ea9ba; --tx-line:#2c3745; --tx-brand:#ff7a2e; --tx-on-brand:#1a0d04; --tx-shadow:none; --tx-new:#7ea6ff; --tx-load:#f2b155; --tx-done:#5ed68a; --tx-bad:#ff7b72; }

#app .tx { position:fixed; inset:0; display:flex; flex-direction:column; background:var(--tx-bg); color:var(--tx-ink); font:16px/1.4 Inter,"Segoe UI",system-ui,Roboto,"Noto Sans Tamil","Noto Sans Kannada","Noto Sans Telugu","Noto Sans Malayalam","Noto Sans Devanagari",sans-serif; }
#app .tx *, #app .tx *::before, #app .tx *::after { box-sizing:border-box; }
#app .tx button:focus-visible, #app .tx a:focus-visible, #app .tx input:focus-visible, #app .tx select:focus-visible { outline:3px solid var(--tx-new); outline-offset:2px; }

/* ---------- laptop and tablet: top bar, the page across the whole width, the shared footer below (footnav.css) ---------- */
#app .tx-top { display:flex; flex-wrap:wrap; gap:10px; align-items:center; padding:12px 16px; background:var(--tx-surface); border-bottom:1px solid var(--tx-line); }
#app .tx-logo { font-weight:800; font-size:1.1rem; color:var(--tx-ink); white-space:nowrap; } #app .tx-logo b { color:var(--tx-brand); }
#app .tx-tag { font-size:.8rem; color:var(--tx-mute); border:1px dashed var(--tx-line); border-radius:99px; padding:3px 12px; }
#app .tx-who { background:var(--tx-ink); color:var(--tx-surface); border-radius:99px; padding:8px 14px; font-weight:600; font-size:.9rem; white-space:nowrap; }
#app .tx-grow { flex:1; }
#app .tx-top select, #app .tx-top .tx-plain { background:var(--tx-surface-2); border:1px solid var(--tx-line); border-radius:99px; box-shadow:none; color:var(--tx-ink); font:inherit; font-size:.9rem; padding:8px 12px; min-height:40px; width:auto; cursor:pointer; }
#app .tx-frame { flex:1; min-height:0; width:100%; display:flex; flex-direction:column; background:var(--tx-bg); }
#app .tx-main { flex:1; display:flex; flex-direction:column; min-height:0; min-width:0; }
#app .tx-scroll { flex:1; min-height:0; overflow:auto; padding:18px; display:flex; flex-direction:column; gap:14px; }
#app .tx-scroll > * { flex:none; }
#app .tx-head { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; }
#app .tx-head h1 { margin:0; padding:0; border:0; font-family:inherit; font-size:1.5rem; font-weight:800; letter-spacing:-.01em; color:var(--tx-ink); }
#app .tx-view { display:flex; flex-direction:column; gap:14px; }
#app .tx-bar, #app .tx-dock, #app .tx-tabs { display:none; }
#app .tx .tx-phone-only { display:none; }

/* ---------- cards, chips, buttons ---------- */
#app .tx-card { background:var(--tx-surface); border:1px solid var(--tx-line); border-radius:var(--tx-r); box-shadow:var(--tx-shadow); padding:14px; display:grid; gap:8px; color:var(--tx-ink); margin:0; }
#app button.tx-card { text-align:left; width:100%; font:inherit; cursor:pointer; }
#app button.tx-card:hover { border-color:var(--tx-brand); }
#app .tx-card.bad { border-left:6px solid var(--tx-bad); } #app .tx-card.warn { border-left:6px solid var(--tx-load); } #app .tx-card.info { border-left:6px solid var(--tx-new); }
#app .tx-row { display:flex; gap:8px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
#app .tx-name { font-weight:800; font-size:1.1rem; }
#app .tx-muted { color:var(--tx-mute); font-size:.9rem; margin:0; }
#app .tx-chips { display:flex; gap:6px; flex-wrap:wrap; }
#app .tx-chip { --c:var(--tx-mute); display:inline-flex; gap:5px; align-items:center; border-radius:99px; padding:3px 10px; font-size:.8rem; font-weight:700; color:var(--c); background:color-mix(in srgb,var(--c) 14%,transparent); white-space:nowrap; }
#app .tx-chip.ok { --c:var(--tx-done); } #app .tx-chip.bad { --c:var(--tx-bad); } #app .tx-chip.warn { --c:var(--tx-load); } #app .tx-chip.new { --c:var(--tx-new); }
#app .tx h2.tx-h2 { font-family:inherit; font-size:.8rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--tx-mute); margin:6px 2px 0; }
#app .tx-btn { min-height:48px; border-radius:var(--tx-r); border:1px solid var(--tx-line); background:var(--tx-surface-2); color:var(--tx-ink); box-shadow:none; font:inherit; font-weight:700; padding:10px 16px; display:inline-flex; gap:8px; align-items:center; justify-content:center; text-align:center; text-decoration:none; cursor:pointer; }
#app .tx-btn:hover { border-color:var(--tx-brand); }
#app .tx-btn.main { background:var(--tx-brand); border-color:var(--tx-brand); color:var(--tx-on-brand); }
#app .tx-btn.huge { min-height:64px; font-size:1.25rem; }
#app .tx-btn.small { min-height:40px; padding:6px 12px; font-size:.9rem; justify-self:start; }
#app .tx-btns { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:8px; }
#app .tx-soon { margin:0; text-decoration:none; font-size:.86rem; color:var(--tx-mute); border:1px dashed var(--tx-line); border-radius:var(--tx-r); padding:10px 14px; }

/* ---------- number tiles and columns ---------- */
#app .tx-tiles { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
#app .tx-tiles.three { grid-template-columns:repeat(3,minmax(0,1fr)); }
#app .tx-tile { display:block; border-radius:var(--tx-r); padding:12px 14px; background:var(--tx-surface); border:1px solid var(--tx-line); box-shadow:var(--tx-shadow); color:var(--tx-ink); text-decoration:none; }
#app a.tx-tile:hover { border-color:var(--tx-brand); }
#app .tx-tile b { display:block; font-size:2rem; line-height:1.1; color:var(--c,var(--tx-ink)); }
#app .tx-tile span { font-size:.86rem; color:var(--tx-mute); }
#app .tx-tile.ok { --c:var(--tx-done); } #app .tx-tile.bad { --c:var(--tx-bad); } #app .tx-tile.new { --c:var(--tx-new); }
#app .tx-two { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; align-items:start; }
#app .tx-cols { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; align-items:start; }
#app .tx-col { display:grid; gap:10px; align-content:start; min-width:0; }
#app .tx-list { display:grid; gap:10px; align-content:start; }

/* ---------- tables (laptop) and pills ---------- */
#app .tx-table-wrap { overflow-x:auto; background:var(--tx-surface); border:1px solid var(--tx-line); border-radius:var(--tx-r); box-shadow:var(--tx-shadow); }
#app .tx-table { border-collapse:collapse; width:100%; margin:0; background:transparent; }
#app .tx-table th, #app .tx-table td { padding:12px; text-align:left; border:0; border-bottom:1px solid var(--tx-line); font-size:.92rem; color:var(--tx-ink); }
#app .tx-table th { color:var(--tx-mute); font-size:.76rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
#app .tx-table tbody tr { cursor:pointer; } #app .tx-table tbody tr:hover { background:var(--tx-surface-2); }
#app .tx-table tbody tr:last-child td { border-bottom:0; }
#app .tx-rowbtn { border:0; background:none; padding:0; font:inherit; font-weight:800; color:var(--tx-ink); cursor:pointer; text-align:left; }
#app .tx-pills { display:flex; gap:6px; flex-wrap:wrap; }
#app .tx-pills .tx-btn[aria-pressed="true"] { background:var(--tx-ink); border-color:var(--tx-ink); color:var(--tx-surface); }

/* ---------- setting up ---------- */
#app .tx-step { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px; min-height:50px; padding:6px 12px; border:1px solid var(--tx-line); border-radius:12px; color:var(--tx-ink); background:var(--tx-surface-2); text-decoration:none; font-weight:700; }
#app .tx-step b { width:2rem; height:2rem; display:grid; place-items:center; border-radius:99px; border:2px solid var(--tx-line); }
#app .tx-step.done b { border-color:var(--tx-done); color:var(--tx-done); }
#app .tx-step small { color:var(--tx-mute); font-weight:600; }

/* ---------- sheets and forms ---------- */
#app .tx-veil { position:absolute; inset:0; background:rgba(5,10,18,.45); display:flex; align-items:center; justify-content:center; padding:16px; z-index:30; }
#app .tx-sheet { background:var(--tx-surface); color:var(--tx-ink); width:100%; max-width:620px; max-height:100%; overflow:auto; border-radius:18px; padding:18px; display:flex; flex-direction:column; gap:12px; box-shadow:0 24px 60px rgba(0,0,0,.3); }
#app .tx-sheet > * { flex:none; }
#app .tx-sheet h3 { margin:0; font-family:inherit; font-size:1.2rem; font-weight:800; color:var(--tx-ink); }
#app .tx-field { display:grid; gap:4px; align-content:start; margin:0; font-size:.86rem; font-weight:600; color:var(--tx-mute); }
#app .tx-field input, #app .tx-field select, #app .tx-sheet select { width:100%; min-height:46px; margin:0; border:1px solid var(--tx-line); border-radius:10px; background:var(--tx-surface-2); box-shadow:none; color:var(--tx-ink); font:inherit; font-size:16px; padding:8px 12px; }
#app .tx-field input:disabled { opacity:.6; }
#app .tx-grid2 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
#app .tx-choices { display:flex; flex-wrap:wrap; gap:6px; }
#app .tx-choices button { min-height:44px; border-radius:99px; border:1px solid var(--tx-line); background:var(--tx-surface-2); box-shadow:none; color:var(--tx-ink); font:inherit; font-size:.95rem; font-weight:700; padding:6px 14px; cursor:pointer; }
#app .tx-choices button[aria-pressed="true"] { background:var(--tx-ink); border-color:var(--tx-ink); color:var(--tx-surface); }
#app .tx-facts { display:grid; grid-template-columns:auto 1fr; gap:6px 16px; margin:0; }
#app .tx-facts dt { color:var(--tx-mute); font-size:.9rem; } #app .tx-facts dd { margin:0; font-weight:700; overflow-wrap:anywhere; }

/* the existing business, plan and wallet pages keep their own look inside the window */
#app .tx-plain > * { margin-top:0; }

html.tx-on #toast { background:#101828; color:#fff; border-radius:99px; z-index:60; }
html.tx-on #toast.ok { background:#15803d; }
html.tx-on #toast.bad { background:#c2261c; }

/* narrower laptop and tablet */
@media (max-width:1099px) { #app .tx-cols { grid-template-columns:repeat(2,minmax(0,1fr)); } #app .tx-two { grid-template-columns:minmax(0,1fr); } }
@media (max-width:899px) { #app .tx-tiles, #app .tx-tiles.three { grid-template-columns:repeat(2,minmax(0,1fr)); } #app .tx-top .tx-tag { display:none; } }

/* ---------- phone: title bar, cards, one big button, bottom tabs ---------- */
@media (max-width:699px) {
  #app .tx-top, #app .tx-head, #app .tx .tx-desk-only { display:none; }
  #app .tx .tx-phone-only { display:grid; }
  #app .tx-bar { display:flex; justify-content:space-between; align-items:flex-end; gap:10px; padding:calc(14px + env(safe-area-inset-top)) 16px 8px; }
  #app .tx-bar small { display:block; color:var(--tx-mute); font-size:.86rem; }
  #app .tx-bar h1 { margin:0; padding:0; border:0; font-family:inherit; font-size:1.45rem; font-weight:800; letter-spacing:-.01em; color:var(--tx-ink); }
  #app .tx-scroll { padding:6px 14px 16px; gap:12px; }
  #app .tx-view { gap:12px; }
  #app .tx-dock { display:grid; gap:8px; padding:10px 14px; background:var(--tx-surface); border-top:1px solid var(--tx-line); }
  #app .tx-tabs { display:grid; grid-auto-flow:column; grid-auto-columns:1fr; background:var(--tx-surface); border-top:1px solid var(--tx-line); padding-bottom:env(safe-area-inset-bottom); }
  #app .tx-tab { border:0; background:none; box-shadow:none; padding:8px 4px 10px; font:inherit; font-size:.75rem; font-weight:600; color:var(--tx-mute); display:grid; justify-items:center; align-content:center; min-height:56px; text-decoration:none; cursor:pointer; }
  #app .tx-tab span { font-size:1.25rem; }
  #app .tx-tab.on { color:var(--tx-brand); font-weight:800; }
  #app .tx-two, #app .tx-cols, #app .tx-grid2 { grid-template-columns:minmax(0,1fr); }
  #app .tx-tiles { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  #app .tx-veil { align-items:flex-end; padding:0; }
  #app .tx-sheet { max-width:none; max-height:92%; border-radius:22px 22px 0 0; padding-bottom:calc(18px + env(safe-area-inset-bottom)); }
  html.tx-on #toast { top:10px; bottom:auto; }
}

/* ---------- the team app is a phone screen at every size ---------- */
#app .tx.tx-app .tx-frame { width:100%; max-width:520px; margin:0 auto; }
#app .tx.tx-app .tx-bar { display:flex; justify-content:space-between; align-items:flex-end; gap:10px; padding:calc(14px + env(safe-area-inset-top)) 16px 8px; }
#app .tx.tx-app .tx-bar small { display:block; color:var(--tx-mute); font-size:.86rem; }
#app .tx.tx-app .tx-bar h1 { margin:0; padding:0; border:0; font-family:inherit; font-size:1.45rem; font-weight:800; letter-spacing:-.01em; color:var(--tx-ink); }
#app .tx.tx-app .tx-scroll { padding:6px 14px 16px; gap:12px; }
#app .tx.tx-app .tx-dock { display:grid; gap:8px; padding:10px 14px calc(10px + env(safe-area-inset-bottom)); background:var(--tx-surface); border-top:1px solid var(--tx-line); }
#app .tx.tx-app .tx-veil { align-items:flex-end; padding:0; }
#app .tx.tx-app .tx-sheet { max-width:520px; max-height:92%; border-radius:22px 22px 0 0; }

/* a form's Save stays in view while the form scrolls */
#app .tx .tx-sheet > .tx-foot { position:sticky; bottom:-18px; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; margin-bottom:-18px; padding:10px 0 18px; background:var(--tx-surface); border-top:1px solid var(--tx-line); z-index:1; }

/* ---------- loads and trips ---------- */
.tx { --tx-asg:#6d28d9; }
:root[data-theme="dark"] .tx { --tx-asg:#b99bff; }
#app .tx-chip.asg { --c:var(--tx-asg); }
#app .tx .tx-card.picked { outline:3px solid var(--tx-brand); outline-offset:-1px; }
#app .tx-arrow { font-style:normal; color:var(--tx-mute); padding:0 6px; }
#app .tx-amt { font-weight:800; }
#app .tx-warnline { color:var(--tx-bad); font-weight:700; font-size:.9rem; }
#app .tx-timeline { margin:0; padding:0; list-style:none; display:grid; gap:8px; font-size:.9rem; }
#app .tx-timeline li { margin:0; border-left:3px solid var(--tx-line); padding-left:10px; }
#app .tx-steps { display:flex; gap:4px; }
#app .tx-steps i { flex:1; height:6px; border-radius:9px; background:var(--tx-surface-2); border:1px solid var(--tx-line); }
#app .tx-steps i.on { background:var(--tx-done); border-color:var(--tx-done); }

/* ---------- on the road: number pad, photos, voice ---------- */
#app .tx-read { text-align:center; font-size:2.3rem; font-weight:800; padding:4px 0 8px; }
#app .tx-pad { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
#app .tx-pad .tx-btn { font-size:1.35rem; }
#app .tx-pick { display:grid; }
#app .tx-field input[type=file], #app .tx-pick input { display:none; }
#app .tx-thumbs { display:grid; grid-template-columns:repeat(auto-fill,minmax(96px,1fr)); gap:8px; }
#app .tx-thumb { border:1px solid var(--tx-line); border-radius:12px; padding:4px; background:var(--tx-surface-2); cursor:pointer; display:grid; gap:2px; justify-items:center; font:inherit; color:var(--tx-ink); }
#app .tx-thumb img { width:100%; height:78px; object-fit:cover; border-radius:8px; display:block; }
#app .tx-thumb small { color:var(--tx-mute); font-size:.72rem; }
#app .tx-voice { display:flex; align-items:center; gap:8px; flex-wrap:wrap; } #app .tx-voice audio { height:36px; max-width:100%; }
#app .tx .tx-btns.two { grid-template-columns:repeat(2,minmax(0,1fr)); }
#app .tx a.tx-link { color:var(--tx-new); font-weight:700; font-size:.85rem; }
#app .tx img.tx-full { width:100%; max-height:70vh; object-fit:contain; border-radius:12px; background:var(--tx-surface-2); }
#app .tx-voice audio { width:100%; }
#app .tx .tx-btns.row { display:flex; flex-wrap:wrap; }
#app .tx .tx-four { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
#app .tx button.tx-pic { flex-direction:column; gap:2px; padding:10px 2px; font-size:.86rem; }
#app .tx button.tx-pic span { font-size:1.5rem; line-height:1.2; }
#app .tx-lines { display:grid; gap:0; }
#app .tx-line { display:grid; gap:4px; padding:8px 0; border-top:1px solid var(--tx-line); }
#app .tx .tx-line.off { opacity:.55; } #app .tx .tx-line.off b { text-decoration:line-through; }
#app .tx .tx-tiles.sums .tx-tile b { font-size:1.45rem; overflow-wrap:anywhere; }
#app .tx details > summary.tx-sum { cursor:pointer; font-weight:700; padding:10px 0; }
#app .tx .tx-form { display:grid; gap:10px; }
html[lang]:not([lang="en"]) #app .tx button.tx-pic { font-size:.76rem; padding-inline:0; }

/* ---------- boards: labelled columns whose cards start level and keep one size ---------- */
#app .tx-board { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; align-items:start; }
#app .tx-board.two { grid-template-columns:repeat(2,minmax(0,1fr)); }
#app .tx-board h2.tx-h2 { margin:0 2px; line-height:20px; }
#app .tx .tx-item { display:grid; grid-template-rows:auto auto 1fr; gap:4px; min-width:0; cursor:pointer; text-align:left; }
#app .tx .tx-item:hover { border-color:var(--tx-brand); }
#app .tx .tx-item-top { display:flex; justify-content:space-between; align-items:center; gap:8px; min-width:0; }
#app .tx .tx-item-top .tx-name { min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#app .tx .tx-one { min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#app .tx .tx-item-foot { align-self:end; display:flex; justify-content:space-between; align-items:center; gap:6px; min-width:0; min-height:32px; }
#app .tx .tx-item-foot .tx-chips { min-width:0; flex-wrap:nowrap; overflow:hidden; }
#app .tx .tx-item-foot .tx-btn { flex:none; }
@media (max-width:999px) { #app .tx-board { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:699px) { #app .tx-board, #app .tx-board.two { grid-template-columns:minmax(0,1fr); } #app .tx .tx-item-foot .tx-chips { flex-wrap:wrap; } }

/* ---------- one load or trip: where it is, what to do now, and the rest folded away ---------- */
#app .tx .tx-stages { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:3px; margin:0; padding:0; list-style:none; }
#app .tx .tx-stages li { display:grid; grid-template-columns:minmax(0,1fr); gap:3px; justify-items:center; align-content:start; margin:0; font-size:.66rem; font-weight:700; line-height:1.2; text-align:center; color:var(--tx-mute); }
#app .tx .tx-stages li::before { content:''; width:100%; height:6px; border-radius:9px; background:var(--tx-surface-2); border:1px solid var(--tx-line); }
#app .tx .tx-stages li.done::before { background:var(--tx-done); border-color:var(--tx-done); }
#app .tx .tx-stages li span { max-width:100%; overflow-wrap:anywhere; }
#app .tx .tx-stages li:nth-child(-n+2) span { justify-self:start; } #app .tx .tx-stages li:nth-last-child(-n+2) span { justify-self:end; }
#app .tx .tx-stages li.on { color:var(--tx-brand); }
#app .tx .tx-stages li.on::before { background:var(--tx-brand); border-color:var(--tx-brand); }
@media (max-width:699px) { #app .tx .tx-stages li:not(.on) span { visibility:hidden; } #app .tx .tx-stages li.on span { max-width:none; white-space:nowrap; } }
#app .tx .tx-next { display:grid; gap:8px; padding:12px; border-radius:12px; border:1px solid var(--tx-line); background:var(--tx-surface-2); }
#app .tx .tx-next > p { margin:0; font-weight:700; }
#app .tx .tx-next .tx-btn:not(.main) { background:var(--tx-surface); }
#app .tx .tx-sheet .tx-tiles { gap:8px; }
#app .tx .tx-sheet .tx-tiles.three { grid-template-columns:repeat(3,minmax(0,1fr)); }
#app .tx .tx-sheet .tx-tile { padding:8px 10px; box-shadow:none; }
#app .tx .tx-sheet .tx-tiles.sums .tx-tile b { font-size:1.1rem; }
#app .tx details.tx-fold { margin:0; border-top:1px solid var(--tx-line); }
#app .tx details.tx-fold > summary { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:10px 2px; list-style:none; font-weight:700; font-size:.92rem; cursor:pointer; }
#app .tx details.tx-fold > summary::-webkit-details-marker { display:none; }
#app .tx details.tx-fold > summary::after { content:'▾'; color:var(--tx-mute); }
#app .tx details.tx-fold[open] > summary::after { content:'▴'; }
#app .tx details.tx-fold > div { display:grid; gap:8px; padding-bottom:10px; }

/* ---------- saved reports: search and filters, one report's tables, what saves by itself ---------- */
#app .tx .tx-btn[hidden] { display:none; }
#app .tx .tx-search input { width:100%; }
#app .tx .tx-filters { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:8px 10px; align-items:end; }
#app .tx .tx-figs { display:flex; flex-wrap:wrap; gap:2px 14px; }
#app .tx .tx-figs span { white-space:nowrap; }
#app .tx .tx-figs small { color:var(--tx-mute); }
#app .tx .tx-sub { display:block; color:var(--tx-mute); font-size:.76rem; }
#app .tx a.tx-btn[aria-pressed="true"] { background:var(--tx-ink); border-color:var(--tx-ink); color:var(--tx-surface); }
#app .tx .tx-btn:disabled { opacity:.55; cursor:default; }
#app .tx .tx-report .tx-table th.num, #app .tx .tx-report .tx-table td.num { text-align:right; }
#app .tx .tx-report .tx-table td { white-space:nowrap; }
#app .tx .tx-report .tx-table tbody tr { cursor:default; }
#app .tx .tx-report .tx-tiles { grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); }
#app .tx .tx-plan { display:flex; justify-content:space-between; align-items:center; gap:10px; border-top:1px solid var(--tx-line); padding-top:8px; }
#app .tx .tx-plan > div { display:grid; gap:2px; min-width:0; }
#app .tx .tx-hour { display:flex; flex-wrap:wrap; align-items:center; gap:10px; font-weight:700; }
#app .tx .tx-hour select { min-height:36px; border:1px solid var(--tx-line); border-radius:10px; background:var(--tx-surface-2); color:var(--tx-ink); font:inherit; padding:4px 10px; width:auto; }

/* ---------- laptop and tablet office screens: ordinary letters and small cards (the team app keeps its large ones) ---------- */
@media (min-width:700px) {
  #app .tx:not(.tx-app) { --tx-r:14px; font-size:14px; }
  #app .tx:not(.tx-app) .tx-top { padding:7px 16px; gap:8px; }
  #app .tx:not(.tx-app) .tx-who { padding:5px 12px; font-size:.84rem; }
  #app .tx:not(.tx-app) .tx-top select, #app .tx:not(.tx-app) .tx-top .tx-plain { min-height:34px; padding:4px 10px; font-size:.84rem; }
  #app .tx:not(.tx-app) .tx-scroll { padding:12px 18px 18px; gap:12px; }
  #app .tx:not(.tx-app) .tx-view { gap:12px; }
  #app .tx:not(.tx-app) .tx-head h1 { font-size:1.25rem; }
  #app .tx:not(.tx-app) .tx-btn { min-height:36px; gap:6px; padding:6px 14px; border-radius:10px; font-size:.9rem; }
  #app .tx:not(.tx-app) .tx-btn.small { min-height:32px; padding:3px 11px; font-size:.84rem; }
  #app .tx:not(.tx-app) .tx-btn.huge { min-height:42px; font-size:.98rem; }
  #app .tx:not(.tx-app) .tx-btns { grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); }
  #app .tx:not(.tx-app) .tx-card { gap:5px; padding:10px 12px; border-radius:12px; }
  #app .tx:not(.tx-app) .tx-item { height:106px; overflow:hidden; }
  #app .tx:not(.tx-app) .tx-name { font-size:.98rem; }
  #app .tx:not(.tx-app) .tx-muted { font-size:.84rem; }
  #app .tx:not(.tx-app) .tx-chip { padding:2px 8px; font-size:.74rem; }
  #app .tx:not(.tx-app) .tx-warnline { font-size:.84rem; }
  #app .tx:not(.tx-app) .tx-tiles { gap:10px; }
  #app .tx:not(.tx-app) .tx-tile { padding:8px 12px; }
  #app .tx:not(.tx-app) .tx-tile b { font-size:1.4rem; }
  #app .tx:not(.tx-app) .tx-tiles.sums .tx-tile b { font-size:1.15rem; }
  #app .tx:not(.tx-app) .tx-tile span { font-size:.8rem; }
  #app .tx:not(.tx-app) .tx-step { min-height:40px; padding:4px 10px; }
  #app .tx:not(.tx-app) .tx-step b { width:1.6rem; height:1.6rem; }
  #app .tx:not(.tx-app) .tx-table th, #app .tx:not(.tx-app) .tx-table td { padding:8px 12px; font-size:.86rem; }
  #app .tx:not(.tx-app) .tx-table th { font-size:.72rem; }
  /* loose cards sit side by side at an ordinary width, however wide the screen is */
  #app .tx:not(.tx-app) .tx-cols, #app .tx:not(.tx-app) .tx-board .tx-list { grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:10px; }
  #app .tx:not(.tx-app) .tx-sheet { max-width:560px; gap:10px; padding:16px; }
  #app .tx:not(.tx-app) .tx-sheet h3 { font-size:1.05rem; }
  #app .tx:not(.tx-app) .tx-facts { gap:3px 14px; } #app .tx:not(.tx-app) .tx-facts dt { font-size:.84rem; }
  #app .tx:not(.tx-app) .tx-field { font-size:.8rem; }
  #app .tx:not(.tx-app) .tx-field input, #app .tx:not(.tx-app) .tx-field select, #app .tx:not(.tx-app) .tx-sheet select { min-height:38px; padding:5px 10px; font-size:14px; }
  #app .tx:not(.tx-app) .tx-choices button { min-height:34px; padding:3px 12px; font-size:.85rem; }
  #app .tx:not(.tx-app) .tx-read { font-size:1.6rem; }
  #app .tx:not(.tx-app) .tx-pad .tx-btn { font-size:1.1rem; }
  #app .tx:not(.tx-app) .tx-sheet > .tx-foot { bottom:-16px; margin-bottom:-16px; padding:8px 0 16px; }
  #app .tx:not(.tx-app) .tx-sheet .tx-trucks { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; align-items:stretch; }
  #app .tx:not(.tx-app) .tx-line .tx-thumbs { grid-template-columns:repeat(auto-fill,84px); } #app .tx:not(.tx-app) .tx-line .tx-thumb img { height:48px; }
}

/* ---------- on paper (a saved report): the report alone, every part unfolded, dark letters on white ---------- */
@media print {
  @page { margin:12mm; }
  html, body, html.tx-on, html.tx-on body, #app { background:#fff !important; height:auto !important; overflow:visible !important; }
  #app .tx { --tx-bg:#fff; --tx-surface:#fff; --tx-surface-2:#fff; --tx-ink:#000; --tx-mute:#444; --tx-line:#bbb; --tx-shadow:none; position:static; display:block; font-size:11px; }
  #app .tx .tx-top, #app .tx .tx-bar, #app .tx .tx-tabs, #app .tx .tx-dock, #app .tx .tx-veil, #app .tx .tx-noprint, #toast { display:none !important; }
  #app .tx .tx-frame, #app .tx .tx-main, #app .tx .tx-scroll { display:block; overflow:visible; height:auto; min-height:0; padding:0; }
  #app .tx .tx-head { display:block; }
  #app .tx .tx-desk-only { display:block; } #app .tx .tx-phone-only { display:none; }
  #app .tx .tx-table-wrap { overflow:visible; border-radius:0; }
  #app .tx .tx-report .tx-table th, #app .tx .tx-report .tx-table td { padding:3px 5px; font-size:9px; white-space:normal; }
  #app .tx .tx-report .tx-tiles { grid-template-columns:repeat(4,minmax(0,1fr)); }
  #app .tx .tx-card, #app .tx .tx-tile, #app .tx .tx-table tr { break-inside:avoid; }
  #app .tx details.tx-fold > summary::after { content:none; }
}
