/* ---- Tactik Hub theme (v1.84): Inter, warm off-white, hairlines, one indigo accent ---- */
@font-face { font-family: "Inter"; src: url("/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  color-scheme: light;
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-2: #f3f3f0;
  --border: #e8e7e3;
  --text: #18181b;
  --text-2: #52525b;
  --muted: #8b8b93;
  --brand: #0f6cbd;            /* the hub's colour (Yanick, 2026-10-16); each user can choose their own (⚙ → Colours) */
  --brand-dark: color-mix(in srgb, var(--brand) 62%, #000);
  --accent: var(--brand);
  --accent-ink: #ffffff;
  --ink: #18181b;              /* black buttons */
  --ink-text: #ffffff;
  --danger: #e5484d;
  --ok: #16a34a;
  --orange: #f97316;
  --series-1: #2a78d6;   /* Hubstaff */
  --series-2: #eb6834;   /* Creator */
  --series-3: #1baf7a;   /* Outlook */
  --grid: #eeede9;
  --shadow: 0 1px 2px rgba(24,24,27,.04), 0 10px 28px -16px rgba(24,24,27,.14);
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f0f11; --surface: #17171a; --surface-2: #1f1f23; --border: #2a2a2f;
    --text: #f4f4f5; --text-2: #b4b4bb; --muted: #7c7c85; --accent: color-mix(in srgb, var(--brand) 62%, #fff); --accent-ink: #0f0f11;
    --ink: #f4f4f5; --ink-text: #0f0f11;
    --danger: #f2555a; --ok: #3fcf6e; --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --grid: #232327;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f0f11; --surface: #17171a; --surface-2: #1f1f23; --border: #2a2a2f;
  --text: #f4f4f5; --text-2: #b4b4bb; --muted: #7c7c85; --accent: color-mix(in srgb, var(--brand) 62%, #fff); --accent-ink: #0f0f11;
  --ink: #f4f4f5; --ink-text: #0f0f11;
  --danger: #f2555a; --ok: #3fcf6e; --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --grid: #232327;
  --shadow: none;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 "Inter", "Segoe UI", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
.loading { padding: 40px; color: var(--muted); text-align: center; }

/* ---- header ---- */
header { display: flex; align-items: center; gap: 18px; padding: 0 20px; height: 54px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.brand { flex: none; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; white-space: nowrap; }
.brand img { width: 24px; height: 24px; }
nav { display: flex; gap: 2px; overflow-x: auto; flex: 1; }
nav a { padding: 8px 12px; border-radius: 6px; color: var(--text-2); text-decoration: none; white-space: nowrap; }
nav a:hover { background: var(--surface-2); }
nav a.on { background: var(--surface-2); color: var(--text); font-weight: 600; }
.usermenu { position: relative; }
.usermenu > button { background: none; border: 1px solid var(--border); border-radius: 18px; padding: 5px 12px; cursor: pointer; white-space: nowrap; }
.usermenu .menu { position: absolute; right: 0; top: 40px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.15); min-width: 190px; padding: 6px; }
.usermenu .menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.usermenu .menu button:hover { background: var(--surface-2); }
.pagemenu { margin-right: 6px; } .pagemenu .menu { right: auto; left: 0; }
.pagemenu .pm-sub button { padding-left: 24px; } .pagemenu .pm-open.open { background: var(--surface-2); }
.usermenu .menu .who { padding: 6px 10px 8px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }

main { flex: 1; min-width: 0; max-width: none; margin: 0 auto; padding: 20px; }          /* every page full width (Yanick, 2026-10-16) */
h1 { font-size: 20px; margin: 0; }
h2 { font-size: 15px; margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* ---- controls ---- */
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.bar h1 { margin-right: auto; }
.btn { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 6px 12px; cursor: pointer; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.danger { color: var(--danger); }
.btn:disabled { opacity: .5; cursor: default; }
/* EVERY field of the hub: the look of the search bars (Yanick, 2026-10-20: the fields must be modern by default, for
   every page to come). Soft border, round corners, a ring when it has the focus, a chevron on the lists. A page that
   needs another look (Outlook-like Inbox, dark filter bars) sets its own; new pages do nothing and get this. */
input[type=text], input[type=password], input[type=date], input[type=email], input[type=number], input[type=tel], input[type=url], input[type=month], input[type=time], input[type=datetime-local], input:not([type]), select, textarea {
  background-color: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 7px 12px; min-height: 38px; box-sizing: border-box;
  font: inherit; font-size: 14px; outline: 0; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 80px; line-height: 1.45; resize: vertical; }
select { -webkit-appearance: none; appearance: none; padding-right: 34px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
select[multiple] { background-image: none; padding-right: 12px; }
:is(input[type=text], input[type=password], input[type=date], input[type=email], input[type=number], input[type=tel], input[type=url], input[type=month], input[type=time], input[type=datetime-local], input:not([type]), select, textarea)::placeholder { color: var(--muted); }
:is(input[type=text], input[type=password], input[type=date], input[type=email], input[type=number], input[type=tel], input[type=url], input[type=month], input[type=time], input[type=datetime-local], input:not([type]), select, textarea):hover { border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }
:is(input[type=text], input[type=password], input[type=date], input[type=email], input[type=number], input[type=tel], input[type=url], input[type=month], input[type=time], input[type=datetime-local], input:not([type]), select, textarea):focus { outline: 0; border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
:is(input, select, textarea):disabled, input[readonly] { background-color: var(--surface-2); cursor: not-allowed; }
.btn:focus-visible, nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* a form of a page (settings, a record to fill): a label above each field, two columns on a wide screen, one on a phone.
   <div class="hub-form"><label>Name<input …><small>help</small></label> … <div class="hub-form-actions"><button …></div></div> */
.hub-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius, 12px); box-shadow: var(--shadow); padding: 18px 20px; max-width: 980px; }
.hub-form > label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); min-width: 0; }
.hub-form > label > :is(input, select, textarea) { width: 100%; font-weight: 400; }
.hub-form > label small { font-weight: 400; color: var(--muted); font-size: 12px; line-height: 1.35; }
.hub-form .wide, .hub-form-actions { grid-column: 1 / -1; }
.hub-form-actions { display: flex; justify-content: flex-end; gap: 8px; align-items: center; }
/* the settings window of a page (settingsDialog in app.js), opened by the ⚙ of its bar */
dialog.hub-dlg { width: min(760px, 96vw); border: 1px solid var(--border); border-radius: 16px; padding: 16px 20px 18px; background: var(--surface); color: var(--text); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
dialog.hub-dlg::backdrop { background: rgba(15, 23, 42, .35); }
.hub-dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; } .hub-dlg-head h2 { margin: 0; font-size: 18px; }
dialog.hub-dlg .hub-form { border: 0; box-shadow: none; padding: 0; max-width: none; background: none; }
.hub-dlg-err { margin: 0; color: var(--danger); font-size: 13px; } .hub-dlg-err:empty { display: none; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; box-shadow: var(--shadow); margin-bottom: 16px; }
.error { color: var(--danger); margin: 8px 0; }
.note { background: var(--surface-2); border-radius: 8px; padding: 10px 12px; color: var(--text-2); margin-bottom: 16px; }

/* ---- login ---- */
.login { max-width: 360px; margin: 10vh auto; }
.login h1 { margin-bottom: 4px; }
.login label { display: block; margin: 12px 0 4px; font-weight: 600; font-size: 13px; }
.login input { width: 100%; }
.login .btn { width: 100%; margin-top: 18px; padding: 9px; }

/* ---- tiles ---- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 16px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.tile .lbl { font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.tile .val { font-size: 22px; font-weight: 650; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tile .sub { font-size: 12px; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot.hs { background: var(--series-1); }
.dot.cr { background: var(--series-2); }
.dot.ol { background: var(--series-3); }

/* ---- tables ---- */
.tbl-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { font-size: 12px; color: var(--text-2); font-weight: 600; background: var(--surface-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--surface-2); }
.bar-in { display: inline-block; height: 8px; border-radius: 0 4px 4px 0; vertical-align: middle; margin-right: 6px; }

/* ---- hour chart ---- */
.chart svg { width: 100%; height: auto; display: block; }
.chart .axis { fill: var(--muted); font-size: 11px; }
.chart .rowlbl { fill: var(--text-2); font-size: 12px; font-weight: 600; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:hover { fill: var(--text); fill-opacity: .05; }
#tip { position: fixed; z-index: 20; pointer-events: none; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; box-shadow: 0 6px 20px rgba(0,0,0,.18); font-size: 12px; max-width: 260px; }
#tip b { display: block; margin-bottom: 3px; }
#tip .row { display: flex; align-items: center; gap: 6px; }

/* ---- two columns ---- */
.cols { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }

/* ---- apps list ---- */
.apps .app { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; margin-bottom: 8px; font-size: 13px; }
.apps .app .track { grid-column: 1 / -1; height: 6px; background: var(--surface-2); border-radius: 3px; }
.apps .app .fill { height: 6px; background: var(--series-1); border-radius: 0 3px 3px 0; }
.apps .kind { color: var(--muted); font-size: 11px; margin-left: 4px; }

/* ---- events ---- */
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.chip { border: 1px solid var(--border); background: var(--surface); border-radius: 14px; padding: 3px 10px; cursor: pointer; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.chip.on { background: var(--surface-2); border-color: var(--text-2); font-weight: 600; }
.events { list-style: none; margin: 0; padding: 0; }
.ev { display: grid; grid-template-columns: 52px 14px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.ev:last-child { border-bottom: 0; }
.ev > div, .cols > * { min-width: 0; }
.ev .time { color: var(--text-2); font-variant-numeric: tabular-nums; font-size: 13px; }
.ev .dot { margin-top: 6px; }
.ev .title { font-weight: 600; }
.ev .title .app-tag { font-weight: 700; color: var(--accent); margin-right: 2px; }
.ev .sub { color: var(--text-2); font-size: 13px; }
.ev ul { margin: 4px 0 0; padding-left: 16px; color: var(--text-2); font-size: 12px; }
.ev ul li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.gap { color: var(--danger); font-weight: 700; font-size: 12px; padding: 4px 0 4px 76px; border-bottom: 1px dashed var(--border); }

/* ---- admin ---- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 14px; cursor: pointer; color: var(--text-2); }
.tabs button.on { border-bottom-color: var(--accent); color: var(--text); font-weight: 600; }
.form { display: grid; grid-template-columns: 160px 1fr; gap: 10px 14px; align-items: center; max-width: 640px; }
.form label { font-weight: 600; font-size: 13px; }
.form .full { grid-column: 1 / -1; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.checks label { font-weight: 400; display: inline-flex; gap: 6px; align-items: center; }
.pill { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); margin: 1px 2px; }
.pill.off { text-decoration: line-through; }
td input[type=text] { width: 100%; min-width: 140px; }
.soon { text-align: center; padding: 60px 20px; }
.soon .big { font-size: 40px; }
iframe.timeline { width: 100%; height: calc(100vh - 110px); border: 1px solid var(--border); border-radius: 10px; background: #fff; }
dialog { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); padding: 20px; max-width: 700px; width: calc(100% - 32px); }
dialog::backdrop { background: rgba(0,0,0,.35); }
dialog .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }

@media (max-width: 640px) {
  header { padding: 0 10px; gap: 8px; }
  .brand span { display: none; }
  main { padding: 16px; }
  .form { grid-template-columns: 1fr; }
}

.brand .ver { font-size: 11px; font-weight: 500; color: var(--muted); border: 1px solid var(--border); border-radius: 8px; padding: 0 6px; }
.stale { background: #b3261e; color: #fff; padding: 8px 20px; font-weight: 600; }

/* ---- work categories (validated categorical order, slots 2-8; grays for "other") ---- */
:root {
  --cat-2: #eb6834; --cat-3: #1baf7a; --cat-4: #eda100; --cat-5: #e87ba4; --cat-6: #008300; --cat-7: #4a3aa7; --cat-8: #e34948;
  --cat-gray: #a3a29c; --cat-gray2: #d3d2cc;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cat-2: #d95926; --cat-3: #199e70; --cat-4: #c98500; --cat-5: #d55181; --cat-6: #008300; --cat-7: #9085e9; --cat-8: #e66767;
    --cat-gray: #6f6e69; --cat-gray2: #4a4a47;
  }
}
:root[data-theme="dark"] {
  --cat-2: #d95926; --cat-3: #199e70; --cat-4: #c98500; --cat-5: #d55181; --cat-6: #008300; --cat-7: #9085e9; --cat-8: #e66767;
  --cat-gray: #6f6e69; --cat-gray2: #4a4a47;
}
.dot.qb { background: var(--cat-6); }
.mix { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; margin: 6px 0; }
.mix.big { height: 18px; border-radius: 5px; }
.mix span { min-width: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--text-2); margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i, #tip i.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.legend b { color: var(--text); font-weight: 600; }

/* ---- employee timeline ---- */
ol.tl { list-style: none; margin: 0; padding: 0; }
.tl-period { border-left: 4px solid var(--pc); background: var(--surface-2); border-radius: 0 8px 8px 0; padding: 8px 12px; margin: 8px 0; }
.tl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.tl-head .time { font-variant-numeric: tabular-nums; color: var(--text-2); font-size: 13px; }
.tl-title { font-weight: 650; }
.tl-period > .sub { color: var(--text-2); font-size: 13px; }
ul.tl-inner { list-style: none; margin: 6px 0 0; padding: 0 0 0 4px; border-top: 1px solid var(--border); }
ul.tl-inner > li .ev { border-bottom: 1px dashed var(--border); }
ul.tl-inner > li:last-child .ev { border-bottom: 0; }
.tl-item .ev { border-bottom: 0; }
.tl-item { padding: 0 4px; }
ol.tl .gap { padding-left: 4px; }

/* ---- Hubstaff screenshots ---- */
.shots { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.shot { position: relative; padding: 0; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: var(--surface); cursor: zoom-in; width: 96px; height: 60px; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot span { position: absolute; left: 0; bottom: 0; font-size: 10px; padding: 1px 4px; background: rgba(0,0,0,.6); color: #fff; border-top-right-radius: 4px; }
.shot.more { display: inline-flex; align-items: center; justify-content: center; font-weight: 600; color: var(--text-2); cursor: pointer; }
.shot.expired img { opacity: .15; }
.shot:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
dialog.lightbox { max-width: min(1400px, 96vw); width: auto; padding: 10px; }
dialog.lightbox .lb-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
dialog.lightbox img { display: block; max-width: 100%; max-height: 82vh; margin: 0 auto; border-radius: 6px; }

/* ---- block extras: other websites, badges ---- */
.others { font-size: 13px; color: var(--text-2); margin-top: 6px; line-height: 1.7; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.badge { font-size: 12px; padding: 1px 8px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.badge.warn { border-color: #c98500; color: var(--text); }

.tl-break { list-style: none; margin: 8px 0; padding: 8px 12px; border-left: 4px dashed var(--muted); background: var(--surface-2); border-radius: 0 8px 8px 0; color: var(--text-2); font-size: 14px; }
.tl-break .time { font-variant-numeric: tabular-nums; margin-right: 8px; }

/* ---- sent email details (closed by default) ---- */
details.mails { margin-top: 4px; font-size: 13px; }
details.mails summary { cursor: pointer; color: var(--accent); width: max-content; }
details.mails ul { list-style: none; margin: 6px 0 0; padding: 0 0 0 4px; max-height: 320px; overflow-y: auto; }
details.mails li { padding: 4px 0; border-bottom: 1px dashed var(--border); white-space: normal; }
details.mails li:last-child { border-bottom: 0; }
details.mails .time { color: var(--text-2); font-variant-numeric: tabular-nums; margin-right: 4px; }

/* ---- alerts ---- */
.card.alerts { border-color: #c98500; }
.card.alerts ul { margin: 0; padding-left: 4px; list-style: none; }
.card.alerts li { padding: 4px 0; }
.alert-count { color: #c98500; font-weight: 650; }
.tl-manual { border-left-color: #c98500; border-left-style: solid; }
#evl > li.flash { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- shared mailboxes inside the Team day table ---- */
tr.shared-row td { background: var(--surface-2); }
tr.shared-row .shared-name { font-weight: 600; }
tr.shared-row .small { white-space: normal; }
svg.strip .hit { fill: transparent; }

/* ---- foldable cards ---- */
details.fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before { content: '▸'; color: var(--muted); font-size: 13px; transition: transform .15s; }
details.fold[open] > summary::before { transform: rotate(90deg); }
details.fold > summary h2 { margin: 0; }
details.fold[open] > summary { margin-bottom: 10px; }
details.fold:not([open]) { padding-top: 12px; padding-bottom: 12px; }
/* ---- search in the timeline ---- */
.search { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.search input { flex: 1; min-width: 0; }
#evl li.hit > .ev .title, #evl li.hit .tl-title { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

details.mails li.unread b { font-weight: 800; }
.unread-dot { color: var(--accent); font-size: 11px; }

/* ---- received emails window ---- */
.recv-sum { margin: 0 0 10px; }
dialog.recv { max-width: 860px; width: calc(100% - 32px); max-height: 90vh; padding: 16px 18px; }
dialog.recv .lb-bar { display: flex; align-items: center; gap: 8px; }
dialog.recv .lb-bar h2 { margin: 0; }
.recv-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 12px 0 6px; }
.recv-tools input[type=search] { flex: 1; min-width: 180px; }
.recv-tools label { display: inline-flex; gap: 6px; align-items: center; }
.recv-body section { margin-top: 14px; }
.recv-body h3 { font-size: 14px; margin: 0 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--border); }
.recv-body ul { list-style: none; margin: 0; padding: 0; }
.recv-body li { display: grid; grid-template-columns: 48px 18px 1fr; gap: 8px; padding: 6px 4px; border-bottom: 1px dashed var(--border); }
.recv-body li .time { color: var(--text-2); font-variant-numeric: tabular-nums; }
.recv-body li.unread { background: var(--surface-2); border-radius: 6px; }
.recv-body li.unread b { font-weight: 800; }
.recv-body li .state { text-align: center; }
.recv-body li.read .state { color: var(--ok); }
.recv-body li.unread .state, .unread-txt { color: var(--accent); }
.recv-body li.read b { font-weight: 500; }

/* ---- files ---- */
.files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.file-link { border: 1px solid var(--border); background: var(--surface); color: var(--accent); border-radius: 6px; padding: 2px 8px; font-size: 12px; cursor: pointer; }
.file-link:hover { background: var(--surface-2); }
dialog.fileview { width: min(1100px, 96vw); height: 92vh; max-width: none; padding: 10px; display: flex; flex-direction: column; }
dialog.fileview:not([open]) { display: none; }
dialog.fileview .lb-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
dialog.fileview .fv-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
dialog.fileview iframe { flex: 1; width: 100%; border: 1px solid var(--border); border-radius: 6px; background: #fff; }

/* ---- SharePoint documents ---- */
.sp-link { margin-top: 4px; }
.sp-list { list-style: none; margin: 8px 0 0; padding: 0; }
.sp-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.sp-list .file-link { text-align: left; }

/* payable title: WS number predominant, payable number smaller */
.title .pay-no { font-size: 12px; font-weight: 500; color: var(--muted); }
.title .pay-co { font-weight: 400; }

/* calendar meetings */
.dot.cal { background: var(--cat-7); }

/* breaks: light red banner (manual time keeps its own look) */
.tl-break:not(.tl-manual) { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); border-left-color: color-mix(in srgb, var(--danger) 60%, var(--surface)); }

/* Team day search: results under each person */
.tsearch { padding: 12px 16px; }
.tsp + .tsp { border-top: 1px solid var(--border); margin-top: 10px; padding-top: 10px; }
.tsp h3 { margin: 0 0 6px; font-size: 15px; }
.tsp ul { list-style: none; margin: 0; padding: 0; }
.tsp li { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; font-size: 14px; }
.tsp li .time { width: 44px; flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.tsp li .dot { margin-top: 6px; }

/* Team day: time changed by hand in Hubstaff = red alert */
.alert-count.manual { color: var(--danger); font-weight: 800; }
.al-manual { color: var(--danger); font-weight: 700; }

/* development work */
.dot.dev { background: var(--cat-4); }
.worksum details { margin-top: 6px; }
.worksum summary { cursor: pointer; font-weight: 600; }
.ws-body { max-height: 480px; overflow: auto; font-size: 13px; padding: 6px 2px; overflow-wrap: anywhere; }
.ws-body .ws-h1 { font-weight: 700; font-size: 14px; margin: 8px 0 4px; }
.ws-body .ws-h2 { font-weight: 700; margin: 10px 0 4px; color: var(--accent); }
.ws-body .ws-h3 { font-weight: 600; margin: 8px 0 2px; }
.ws-body ul { margin: 2px 0 6px; padding-left: 18px; }
.ws-body p { margin: 4px 0; }

/* ---- left menu ---- */
.layout { display: flex; align-items: flex-start; }
.side { flex: none; width: 220px; position: sticky; top: 54px; height: calc(100vh - 54px); overflow-y: auto; background: var(--surface); border-right: 1px solid var(--border); padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.side a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--text-2); text-decoration: none; }
.side a:hover { background: var(--surface-2); }
.side a.on { background: var(--surface-2); color: var(--text); font-weight: 600; }
.side-title { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: 0; padding: 9px 12px; border-radius: 6px; font: inherit; font-weight: 700; color: var(--text); cursor: pointer; text-align: left; }
.side-title:hover { background: var(--surface-2); }
.side-title .chev { transition: transform .15s; color: var(--muted); }
.side-group.open .chev { transform: rotate(90deg); }
.side-items { display: none; padding-left: 10px; }
.side-group.open .side-items { display: block; }
.side-sep { border-top: 1px solid var(--border); margin: 8px 4px; }
.side-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; font-size: 16px; cursor: pointer; color: var(--text); }
.home { text-align: center; padding: 48px 20px; }
.home .big { font-size: 44px; }
@media (max-width: 800px) {
  .side-toggle { display: inline-block; }
  .side { position: fixed; left: 0; top: 54px; z-index: 6; transform: translateX(-100%); transition: transform .15s; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
  body.side-open .side { transform: none; }
}

/* time accounted for */
.acc-ok { color: var(--ok); } .acc-mid { color: #c98500; } .acc-low { color: var(--danger); }
a.acc-ok, a.acc-mid, a.acc-low { text-decoration: none; font-weight: 600; }
.acc-bar { height: 10px; border-radius: 5px; background: color-mix(in srgb, var(--danger) 25%, var(--surface-2)); overflow: hidden; margin: 4px 0 10px; }
.acc-in { height: 100%; background: var(--ok); border-radius: 5px 0 0 5px; }
table.acc { width: 100%; border-collapse: collapse; font-size: 14px; }
table.acc td { padding: 4px 6px; border-bottom: 1px dashed var(--border); }
table.acc tr.acc-h td { padding-top: 10px; border-bottom: 1px solid var(--border); }
table.acc tr.acc-not td:first-child { color: var(--text-2); }
tr.acc-click { cursor: pointer; }
tr.acc-click:hover td { background: var(--surface-2); }
tr.acc-click .chev { display: inline-block; transition: transform .15s; color: var(--muted); }
tr.acc-click.open .chev { transform: rotate(90deg); }
tr.acc-list ul { list-style: none; margin: 0; padding: 4px 0 4px 22px; columns: 2; column-gap: 24px; }
tr.acc-list li { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; font-size: 13px; break-inside: avoid; }
@media (max-width: 640px) { tr.acc-list ul { columns: 1; } }
.tile-more summary { cursor: pointer; }
.tile-more[open] summary { margin-bottom: 4px; }
.dot.shotdot { background: var(--series-1); opacity: .5; }
.shot-row .shots { margin: 0; }
.shot-toggle { background: none; border: 1px solid var(--border); border-radius: 14px; padding: 2px 10px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.shot-toggle:hover { background: var(--surface-2); }
.shot-toggle + .shots { margin-top: 6px; }

/* the "hidden" attribute always wins (folded screenshots, extra pictures, lists) */
[hidden] { display: none !important; }

/* Zoho Projects / Desk / CRM */
.dot.zp { background: #2a78d6; } .dot.zd { background: #0f8b8d; } .dot.zc { background: #9085e9; }
.claude-mark { width: 15px; height: 15px; vertical-align: -2px; }

/* Online apps */
.apps-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--border); border-radius: 18px; padding: 5px 12px; cursor: pointer; color: var(--text); white-space: nowrap; margin-right: 8px; }
.apps-btn:hover { background: var(--surface-2); }
.gs-btn.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.gsearch { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 6px 8px 6px 14px; border: 1px solid var(--accent); border-radius: 12px; background: var(--surface); position: sticky; top: 0; z-index: 30; }
.gsearch[hidden] { display: none; }
.gsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; padding: 6px 0; color: var(--text); }
.gs-n { white-space: nowrap; }
.gs-off { display: none !important; }
.pill-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); display: inline-block; }
.pill-dot.on { background: var(--ok); } .pill-dot.off { background: var(--danger); }
dialog.apps { max-width: 560px; }
.apps-list { list-style: none; margin: 8px 0; padding: 0; }
.apps-list li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.pill { flex: none; min-width: 64px; text-align: center; font-size: 12px; font-weight: 700; color: #fff; border-radius: 12px; padding: 3px 10px; }
.pill.on { background: var(--ok); } .pill.off { background: var(--danger); }
@media (max-width: 640px) { .apps-btn { padding: 5px 8px; font-size: 13px; } }
.apps-pop { position: fixed; z-index: 20; width: 300px; max-width: calc(100vw - 16px); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.2); padding: 8px 10px; }
.apps-pop ul { list-style: none; margin: 0; padding: 0; }
.apps-pop li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 5px 0; font-size: 13px; border-bottom: 1px dashed var(--border); }
.apps-pop li:last-child { border-bottom: 0; }
.apps-pop .pill { min-width: 52px; font-size: 11px; padding: 2px 6px; }
.apps-pop .nt { flex-basis: 100%; padding-left: 60px; }

/* start / end of a Projects or Desk log: same colour */
.ev.marked { box-shadow: inset 3px 0 0 var(--mc); padding-left: 6px; border-radius: 4px; }
.ev.marked .title { color: var(--mc); }

/* apps & websites of a block, with start → end */
.apps-in summary { cursor: pointer; }
table.apps-t { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
table.apps-t td { padding: 3px 6px; border-bottom: 1px dashed var(--border); vertical-align: top; }
table.apps-t tr.is-other td:first-child { color: var(--danger); }
.apps-t .rng { display: inline-block; margin: 0 8px 2px 0; white-space: nowrap; }
.apps-t .tag { font-size: 10px; border: 1px solid currentColor; border-radius: 6px; padding: 0 4px; }
.app-seg .title { font-weight: 500; font-size: 14px; }
.app-seg .sub { font-size: 12px; }
.app-seg.is-other .title { color: var(--danger); }
.app-seg .tag { font-size: 10px; border: 1px solid currentColor; border-radius: 6px; padding: 0 4px; }
.tile .sub { overflow-wrap: anywhere; }
/* apps starting at the same time: one block, time shown once */
ul.tl-inner > li.app-seg:has(+ li.app-cont) .ev { border-bottom: 0; padding-bottom: 2px; }
ul.tl-inner > li.app-cont .ev { padding-top: 2px; }
.tl-bar { cursor: pointer; padding: 2px 0; }
.tl-bar .mix { margin: 0; }
.tl-bar:hover .mix { outline: 2px solid var(--border); outline-offset: 2px; }
.tl-meta { padding-top: 4px; }
.block-sites { font-size: 13px; margin-top: 6px; line-height: 1.6; }
.block-sites .is-other { color: var(--danger); }
.block-sites ul { list-style: none; margin: 4px 0 0; padding: 0; max-width: 520px; }
.block-sites li { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; border-bottom: 1px dotted var(--border); }
.block-sites li.is-other a, .block-sites li.is-other > span:first-child { color: var(--danger); }
.block-sites .tag { font-size: 10px; border: 1px solid currentColor; border-radius: 6px; padding: 0 4px; }

/* AI: screenshot analysis + assistant */
.shot-ai { font-size: 12px; color: var(--text-2); margin-bottom: 4px; }
.shot-ai.not-work, .lb-ai.not-work { color: var(--danger); }
.lb-ai { background: var(--surface); color: var(--text); padding: 8px 12px; border-radius: 8px; margin: 6px 0; font-size: 13px; max-width: 900px; }
.ai-card { display: flex; flex-direction: column; gap: 10px; }
.ai-log { min-height: 280px; max-height: calc(100vh - 330px); overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px; }
.ai-msg { padding: 10px 14px; border-radius: 12px; max-width: 85%; line-height: 1.5; overflow-wrap: anywhere; }
.ai-msg.user { align-self: flex-end; background: var(--accent); color: var(--accent-ink); }
.ai-msg.assistant { align-self: flex-start; background: var(--surface-2); }
.ai-msg.thinking { color: var(--muted); font-style: italic; }
.ai-empty { display: flex; flex-wrap: wrap; gap: 8px; margin: auto; justify-content: center; }
.ai-form { display: flex; gap: 8px; align-items: flex-end; }
.ai-form textarea { flex: 1; resize: vertical; min-height: 44px; }

/* =================== Tactik Hub look (v1.84) =================== */
h1 { font-size: 26px; font-weight: 750; letter-spacing: -.025em; }
h2 { letter-spacing: -.01em; font-weight: 650; }
.card, .tile, details.card { border-radius: var(--radius); box-shadow: var(--shadow); }
.card { padding: 18px 20px; }
.tile { padding: 14px 16px; }
.tile .val { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.btn { border-radius: 999px; padding: 7px 14px; font-weight: 500; transition: background .15s, border-color .15s, transform .15s; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--ink-text); }
.btn.primary:hover { opacity: .88; background: var(--ink); }
input, select, textarea { border-radius: 10px; }
th { background: transparent; text-transform: uppercase; letter-spacing: .05em; font-size: 11px; color: var(--muted); }
td, th { border-bottom-color: var(--grid); }
a, .chip, .side a, .side-title { transition: background .15s, color .15s; }
.num, .tile .val, td.num { font-variant-numeric: tabular-nums; }

/* header: thin, calm */
header { background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.brand { gap: 10px; font-weight: 750; letter-spacing: -.01em; }
.brand img { display: none; }
.brand .logo { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--brand), #f97316); display: inline-block; }

/* side menu (Notion-like) */
.side { background: color-mix(in srgb, var(--surface) 55%, var(--bg)); padding: 14px 10px; }
.side a, .side-title { display: flex; align-items: center; gap: 10px; border-radius: 8px; padding: 7px 10px; font-weight: 500; color: var(--text-2); }
.side a.on { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-weight: 600; }
.side a:hover, .side-title:hover { background: var(--surface-2); }
.side-title { color: var(--muted); font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; padding-top: 14px; }
.side-items { padding-left: 0; }
.nav-ic { width: 16px; height: 16px; flex: none; opacity: .85; }
.kbar { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 10px; padding: 8px 10px; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; color: var(--muted); cursor: pointer; font: inherit; width: calc(100% - 4px); }
.kbar:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.kbar kbd { font: 500 11px "Inter", sans-serif; border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; color: var(--text-2); }

/* home: hero + bento */
.hero { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 40px 40px 28px; box-shadow: var(--shadow); margin-bottom: 16px; }
.hero::before { content: ""; position: absolute; inset: -45% -10% auto 45%; height: 440px; background: radial-gradient(closest-side, #a5a6f699, transparent), radial-gradient(closest-side at 70% 60%, #fdba7499, transparent); filter: blur(34px); pointer-events: none; }
.hero > * { position: relative; }
.hero h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; margin: 0 0 10px; }
.hero h1 .g { color: var(--muted); }
.hero h1 .ip { display: inline-block; font-size: .6em; vertical-align: .22em; letter-spacing: 0; font-weight: 700; border-radius: 999px; padding: 0 .6em; background: #dcfce7; color: #15803d; }
.hero h1 .ip.mid { background: #fef3c7; color: #b45309; } .hero h1 .ip.low { background: #fee2e2; color: #b91c1c; }
.hero p.lead { color: var(--text-2); font-size: 15px; margin: 0 0 20px; }
.hero .ai-form { max-width: 780px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 8px 8px 8px 14px; box-shadow: 0 12px 32px -16px rgba(24,24,27,.3); }
.hero .ai-form textarea { border: 0; outline: 0; background: transparent; min-height: 40px; font-size: 15px; resize: none; padding-top: 9px; }
.hero .ai-empty { justify-content: flex-start; margin: 14px 0 0; }
.hero .chip { background: color-mix(in srgb, var(--surface) 80%, transparent); }
.bento { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 14px; margin-bottom: 16px; }
.bento .tile { min-height: 118px; }
.bento .tile.dark { background: #18181b; color: #fff; border-color: #18181b; }
.bento .tile.dark .lbl, .bento .tile.dark .sub { color: #a1a1aa; }
.bento .tile.orange { background: var(--orange); color: #fff; border-color: var(--orange); }
.bento .tile.orange .lbl, .bento .tile.orange .sub { color: #fff; }
.bento .tile .val { font-size: 30px; }
@media (max-width: 1000px) { .bento { grid-template-columns: 1fr 1fr; } .hero { padding: 26px 20px 20px; } }
.ai-log:empty { display: none; }
.ai-thread { margin-bottom: 16px; }
a.tile { text-decoration: none; color: inherit; display: block; transition: transform .15s, box-shadow .15s; }
a.tile:hover { transform: translateY(-2px); }
.logo-l { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--brand), #f97316); display: inline-block; vertical-align: -4px; }

/* dashboard (v1.85) */
.bento .tile .spark { display: block; width: 100%; height: 30px; margin-top: 8px; }
.dl { font-weight: 600; } .dl.up { color: var(--ok); } .dl.down { color: var(--danger); }
.tile.dark .dl.up { color: #86efac; } .tile.dark .dl.down { color: #fca5a5; }
.tile.skel { min-height: 118px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: skel 1.2s infinite linear; }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.dash2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 1000px) { .dash2 { grid-template-columns: 1fr; } }
h2.dh { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; margin: 0 0 12px; }
h2.dh a { font-weight: 500; text-decoration: none; }
.prow { display: grid; grid-template-columns: 32px 1fr 70px 56px 64px; gap: 10px; align-items: center; padding: 8px 6px; border-radius: 10px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--grid); }
.prow:last-child { border-bottom: 0; }
.prow:hover { background: var(--surface-2); }
.prow .av { width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.prow .pn { display: flex; flex-direction: column; min-width: 0; } .prow .pn b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .pt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.prow .pp, .prow .pa { text-align: right; }
.pill-acc { display: inline-block; border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 700; background: color-mix(in srgb, currentColor 12%, transparent); }
.ringbox { display: flex; gap: 18px; align-items: center; margin-bottom: 12px; }
.ring { --p: 0; width: 92px; height: 92px; border-radius: 50%; background: conic-gradient(var(--ok) calc(var(--p) * 1%), var(--surface-2) 0); display: grid; place-items: center; flex: none; }
.ring > div { width: 70px; height: 70px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 750; font-size: 18px; }
.big { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.arow { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--grid); }
.arow:last-child { border-bottom: 0; } .arow b { font-variant-numeric: tabular-nums; } .arow.bad { color: var(--danger); }

/* modern search fields (v1.86) */
.search { gap: 12px; margin-bottom: 14px; }
.sfield { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.sfield input[type=search] { width: 100%; height: 46px; padding: 0 92px 0 44px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); font-size: 14.5px; outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.sfield input[type=search]::placeholder { color: var(--muted); }
.sfield input[type=search]:focus { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent), var(--shadow); }
.sfield input[type=search]:disabled { background: var(--surface-2); box-shadow: none; cursor: not-allowed; }
.i-search { position: absolute; left: 16px; width: 17px; height: 17px; background: var(--muted); -webkit-mask: url(/icons/search.svg) center / contain no-repeat; mask: url(/icons/search.svg) center / contain no-repeat; pointer-events: none; }
.sfield:focus-within .i-search { background: var(--accent); }
.scount { position: absolute; right: 12px; font-size: 12px; color: var(--text-2); background: var(--surface-2); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.scount:empty { display: none; }
/* on / off switch */
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; user-select: none; font-weight: 500; color: var(--text-2); }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 38px; height: 22px; border-radius: 999px; background: var(--border); position: relative; transition: background .15s; flex: none; }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track .knob { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) { .search-team { flex-direction: column; align-items: stretch; } }
a.btn { text-decoration: none; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
a.btn.primary { color: var(--ink-text); }

/* Online apps: screenshot analysis switch */
.apps-sw { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.apps-sw .switch { font-size: 13px; color: var(--text); }
.switch input:disabled + .track { opacity: .5; }

/* phone calls */
.dot.ph { background: #0ea5e9; }

/* Import files page */
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 38px 20px; margin-bottom: 16px; border: 2px dashed var(--border); border-radius: var(--radius); background: var(--surface); cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.drop-ic { width: 34px; height: 34px; background: var(--accent); -webkit-mask: url(/icons/file-text.svg) center / contain no-repeat; mask: url(/icons/file-text.svg) center / contain no-repeat; }
.imp-ok { border-color: color-mix(in srgb, var(--ok) 50%, var(--border)); } .imp-bad { border-color: color-mix(in srgb, var(--danger) 50%, var(--border)); }
.imp-ok ul, .imp-bad ul { margin: 6px 0 0; padding-left: 18px; }

/* off / absent */
.absent { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--danger) 45%, var(--border)); color: var(--danger); border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; font-weight: 500; }
.absent b { font-weight: 750; margin-right: 6px; }
.absent a { color: inherit; font-weight: 650; }

/* v1.98: alerts opened from the dashboard */
button.alert-btn { background: none; border: 0; padding: 2px 6px; margin: -2px -6px; border-radius: 6px; font: inherit; font-weight: 650; cursor: pointer; }
button.alert-btn:hover, button.alert-btn:focus-visible { background: rgba(201,133,0,.14); }
.alerts-dlg .recv-body { overflow: auto; max-height: 74vh; margin-top: 10px; }
.alerts-dlg .al-person { padding: 10px 0; border-top: 1px solid var(--border); }
.alerts-dlg .al-person:first-child { border-top: 0; }
.alerts-dlg h3 { margin: 0 0 6px; font-size: 15px; }
.alerts-dlg ul { margin: 0; padding-left: 4px; list-style: none; }
.alerts-dlg .recv-body li { display: block; padding: 5px 2px; }   /* not the 3-column grid of the received-emails list */
.alerts-dlg .recv-body li.al-red { color: #c62828; font-weight: 650; }

/* v2.02: the assistant is a chat zone inside the top box (messages above the question field) */
.hero .ai-log { min-height: 0; max-height: 52vh; max-width: 780px; margin: 0 0 12px; padding: 2px 6px 2px 0; }
.hero .ai-msg { font-size: 15px; }
.hero .ai-msg.assistant { background: var(--surface); border: 1px solid var(--border); max-width: 100%; }
.hero.chatting { padding-top: 22px; }
.hero.chatting h1 { font-size: 20px; letter-spacing: -.01em; margin-bottom: 14px; }
.hero.chatting h1 br { display: none; }
.hero.chatting h1 .g { margin-left: 6px; }
.ai-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 10px; max-width: 780px; }
.ai-msg .dots i { display: inline-block; width: 4px; height: 4px; margin-left: 3px; border-radius: 50%; background: currentColor; animation: aidot 1.2s infinite; }
.ai-msg .dots i:nth-child(2) { animation-delay: .2s; } .ai-msg .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes aidot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ai-msg .dots i { animation: none; } }

/* v2.08: which model answered and what it cost */
.ai-msg .ai-meta { margin-top: 8px; font-size: 12px; color: var(--muted); }

/* v2.11: history of the assistant's conversations */
.hero .ai-hist-btn { position: absolute; top: 16px; right: 18px; }
.ai-hist { max-width: 780px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; max-height: 46vh; overflow: auto; }
.ai-hist-head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; }
.ai-hist ul { list-style: none; margin: 0; padding: 0; }
.ai-hist li { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--border); }
.ai-hist li.on .t { color: var(--accent); }
.ai-hist-open { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; background: none; border: 0; padding: 8px 4px; font: inherit; color: inherit; cursor: pointer; border-radius: 8px; }
.ai-hist-open:hover, .ai-hist-open:focus-visible { background: var(--surface-2); }
.ai-hist-open .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-hist-del { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px 8px; border-radius: 8px; font: inherit; }
.ai-hist-del:hover, .ai-hist-del:focus-visible { background: var(--surface-2); color: #c62828; }

/* v2.12: the chat zone uses the full width of the top box */
.hero .ai-form, .hero .ai-log, .hero .ai-hist, .hero .ai-foot { max-width: none; }

/* v2.13: greeting and team sentence centred in the top bar; the chat box is titled "Carl your assistant is ready" */
.top-msg { flex: 1; min-width: 0; text-align: center; font-size: 14px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-msg b { color: var(--text); font-weight: 650; }
.top-msg .ip { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 9px; background: #dcfce7; color: #15803d; }
.top-msg .ip.mid { background: #fef3c7; color: #b45309; } .top-msg .ip.low { background: #fee2e2; color: #b91c1c; }
.hero h1 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 16px; }
@media (max-width: 760px) { .top-msg { visibility: hidden; } }

/* v2.15: go to an hour in the timeline */
.hourbar { position: sticky; top: 54px; z-index: 3; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 0; margin-bottom: 6px; background: var(--surface); border-bottom: 1px solid var(--border); }
.hourbar button { font: inherit; font-size: 13px; font-variant-numeric: tabular-nums; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.hourbar button:hover, .hourbar button:focus-visible { border-color: var(--accent); }
.hourbar button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.hourbar button.empty { color: var(--muted); border-style: dashed; }
#evl [data-t] { scroll-margin-top: 118px; }
#evl .hour-hit { box-shadow: -3px 0 0 var(--accent); }
.hour-pick { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); }

.alerts-dlg a.al-go { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.alerts-dlg a.al-go:hover, .alerts-dlg a.al-go:focus-visible { color: var(--accent); }

/* v2.17: two-step sign-in */
.twostep { padding-left: 20px; line-height: 1.7; }
.twostep code { font-size: 15px; letter-spacing: .04em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; user-select: all; }
#lcodebox input, #tsc { width: 100%; font-size: 18px; letter-spacing: .2em; text-align: center; }

/* v2.18: commission forecast */
.cm-months { width: 100%; } .cm-months td { padding: 5px 6px; white-space: nowrap; } .cm-months td.cm-bar { width: 55%; }
.cm-track { display: block; height: 14px; border-radius: 4px; background: var(--surface-2); }
.cm-fill { display: block; height: 100%; min-width: 2px; border-radius: 4px; background: color-mix(in srgb, var(--accent) 35%, var(--surface)); overflow: hidden; }
.cm-paid { display: block; height: 100%; background: var(--accent); }
.cm-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 10px; background: color-mix(in srgb, var(--accent) 35%, var(--surface)); vertical-align: -1px; }
.cm-key.paid { background: var(--accent); margin-left: 0; }
.cm-stage { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); white-space: nowrap; }
.cm-stage.paid { background: #dcfce7; color: #15803d; } .cm-stage.invoiced { background: #fef3c7; color: #b45309; } .cm-stage.blocked, .cm-stage.problem { background: #fee2e2; color: #b91c1c; }
.tile.dark .lbl, .tile.dark .sub { color: rgba(255,255,255,.75); }

/* v2.19: commission totals per pickup month */
.cm-matrix td, .cm-matrix th { white-space: nowrap; }
.cm-matrix tr.cm-total td { font-weight: 700; border-top: 2px solid var(--border); }
.cm-matrix tr.cm-sub td { color: var(--text-2); font-size: 13px; }
.cm-month { font: inherit; font-weight: 600; background: none; border: 0; padding: 2px 6px; border-radius: 6px; cursor: pointer; color: inherit; }
.cm-month:hover, .cm-month:focus-visible { background: var(--surface-2); }
.cm-month.on { background: var(--accent); color: var(--accent-ink); }
#cmlist { scroll-margin-top: 70px; }

/* v2.21: commission forecast laid out like the TIK widget */
.cm-filters { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; padding: 12px 14px; margin-bottom: 12px; border-radius: 12px; background: #334e68; color: #fff; }
.cm-filters label { display: flex; flex-direction: column; gap: 3px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #d9e2ec; }
.cm-filters input, .cm-filters select { font: inherit; font-size: 13px; font-weight: 400; text-transform: none; letter-spacing: 0; padding: 4px 8px; min-width: 130px; border-radius: 6px; border: 1px solid #627d98; background: #486581; color: #fff; }
.cm-filters input::placeholder { color: #bcccdc; }
.cm-filters input[type=month] { min-width: 0; color-scheme: dark; }
.cm-filters .btn { background: transparent; color: #fff; border-color: #9fb3c8; }
.cm-banner { display: flex; align-items: center; gap: 8px; padding: 9px 14px; margin-bottom: 12px; border: 1px solid #b7e4c7; border-radius: 10px; background: #f0fdf4; color: #14532d; font-size: 14px; }
.cm-dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; }
.cm-tiles .tile.cm-blue { border-top: 3px solid #2f6fa3; } .cm-tiles .tile.cm-orange { border-top: 3px solid #c2410c; }
.cm-card { padding: 0; overflow: hidden; }
.cm-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.cm-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.cm-tree { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cm-tree th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.cm-tree td, .cm-tree th { padding: 7px 12px; white-space: nowrap; border-bottom: 1px solid var(--border); }
.cm-tree td.num { border-left: 2px solid transparent; }
.cm-tog, .cm-agent { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.cm-arrow { display: inline-block; width: 14px; font-size: 10px; }
.cm-g td { font-weight: 700; }
.cm-l0 td { background: #c2410c; color: #fff; border-bottom-color: #c2410c; } .cm-l0 td.num { border-left-color: #f4a582; }
.cm-l1 td { background: #fdebd3; color: #1f2933; } .cm-l1 td.num, .cm-l2 td.num { border-left-color: #e8842c; }
.cm-l1 td:first-child { padding-left: 30px; box-shadow: inset 3px 0 0 #e8842c; }
.cm-l2 td { background: #fff6ec; color: #1f2933; } .cm-l2 td:first-child { padding-left: 46px; box-shadow: inset 3px 0 0 #e8842c; }
.cm-a td:first-child { padding-left: 14px; } .cm-agent { text-decoration: underline dashed; text-underline-offset: 3px; }
.cm-agent:hover, .cm-agent:focus-visible, .cm-tog:focus-visible { color: var(--accent); }
.cm-l0 .cm-tog:focus-visible { color: #fff; outline: 2px solid #fff; }
.cm-a td { color: var(--text); }
.cm-blocked td { color: var(--muted); font-style: italic; }
.cm-badge { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 1px 6px; border-radius: 4px; background: #fee2e2; color: #b91c1c; }
.cm-ws td { font-size: 13px; background: var(--surface-2); } .cm-ws td:first-child { padding-left: 34px; white-space: normal; }
.cm-wsn { font-weight: 650; }

/* v2.23: the BU must be chosen */
.cm-filters label.cm-req { color: #ffb37a; }
.cm-filters label.cm-need select { border-color: #f97316; box-shadow: 0 0 0 2px rgba(249,115,22,.45); }
.cm-pick { padding: 28px 18px; text-align: center; border: 1px dashed var(--border); border-radius: 12px; color: var(--text-2); background: var(--surface); }

/* v2.24: several values per search field, picked from a list */
.cm-multi { position: relative; display: flex; flex-direction: column; gap: 3px; }
.cm-lab { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #d9e2ec; }
.cm-box { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-width: 170px; max-width: 320px; padding: 3px 4px; border-radius: 6px; border: 1px solid #627d98; background: #486581; }
.cm-box:focus-within { border-color: #fff; }
.cm-filters .cm-box input { flex: 1; min-width: 90px; border: 0; background: transparent; padding: 2px 4px; outline: 0; }
.cm-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 1px 4px 1px 8px; border-radius: 999px; background: #38bdf8; color: #082f49; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.cm-chip button { font: inherit; font-size: 11px; line-height: 1; border: 0; background: none; color: inherit; cursor: pointer; padding: 2px 4px; border-radius: 50%; }
.cm-chip button:hover, .cm-chip button:focus-visible { background: rgba(8,47,73,.2); }
.cm-sug { position: absolute; top: 100%; left: 0; z-index: 20; margin-top: 4px; min-width: 100%; width: max-content; max-width: 420px; max-height: 300px; overflow: auto; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); padding: 4px; }
.cm-sug button { display: block; width: 100%; text-align: left; font: inherit; font-size: 13px; padding: 6px 8px; border: 0; border-radius: 6px; background: none; color: inherit; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-sug button:hover, .cm-sug button:focus-visible { background: var(--surface-2); }
.cm-more { display: block; padding: 6px 8px; font-size: 12px; color: var(--muted); }

/* v2.25: worksheets panel under an agent line */
.cm-tree tr.cm-panel > td { padding: 0; white-space: normal; border-bottom: 2px solid #334e68; }
.cm-phead { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; background: #334e68; color: #fff; }
.cm-count { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; background: #627d98; font-size: 12px; font-weight: 700; }
.cm-close { font: inherit; font-size: 12px; color: #fff; background: transparent; border: 1px solid #9fb3c8; border-radius: 6px; padding: 3px 10px; cursor: pointer; }
.cm-close:hover, .cm-close:focus-visible { background: #486581; }
.cm-pscroll { max-height: 340px; overflow: auto; }
.cm-wstab { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.cm-wstab th { position: sticky; top: 0; background: var(--surface-2); font-size: 10.5px; z-index: 1; }
.cm-wstab td, .cm-wstab th { padding: 4px 10px; white-space: nowrap; border-bottom: 1px solid var(--border); }
.cm-st { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 4px; }
.cm-st.paid { background: #dcfce7; color: #15803d; } .cm-st.inv { background: #dbeafe; color: #1d4ed8; }
.cm-wstab td.cm-amt { color: #1d6fa5; }

/* v2.27: a page that uses the whole width (commission forecast) */
main.wide { max-width: none; }

/* v2.29: day pickers; a long name is cut, its ✕ always stays visible */
.cm-filters input[type=date] { min-width: 0; color-scheme: dark; }
.cm-chip { overflow: visible; max-width: 100%; }
.cm-chip-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 190px; }
.cm-chip button { flex: none; }

/* v2.30: commission forecast in the site's own palette (tokens: indigo accent, ink, orange, neutrals; follows light / dark) */
.cm-filters { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.cm-filters label, .cm-lab { color: var(--text-2); }
.cm-filters input, .cm-filters select { border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.cm-filters input::placeholder { color: var(--muted); }
.cm-filters input:focus-visible, .cm-filters select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cm-filters input[type=month], .cm-filters input[type=date] { color-scheme: inherit; }
.cm-filters .btn { background: var(--surface); color: var(--text); border-color: var(--border); }
.cm-box { border: 1px solid var(--border); background: var(--surface); }
.cm-box:focus-within { border-color: var(--accent); }
.cm-chip { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--text); }
.cm-chip button:hover, .cm-chip button:focus-visible { background: color-mix(in srgb, var(--accent) 30%, var(--surface)); }
.cm-filters label.cm-req { color: var(--text-2); }
.cm-filters label.cm-need select { border-color: var(--orange); box-shadow: 0 0 0 2px color-mix(in srgb, var(--orange) 40%, transparent); }
.cm-banner { border: 1px solid var(--border); background: color-mix(in srgb, var(--ok) 9%, var(--surface)); color: var(--text); border-radius: 12px; }
.cm-dot { background: var(--ok); }
.cm-tiles .tile.cm-blue { border-top: 3px solid var(--accent); } .cm-tiles .tile.cm-orange { border-top: 3px solid var(--orange); }
.cm-l0 td { background: var(--accent); color: var(--accent-ink); border-bottom-color: var(--accent); }
.cm-l0 td.num { border-left-color: color-mix(in srgb, var(--accent-ink) 35%, transparent); }
.cm-l0 .cm-tog:focus-visible { color: var(--accent-ink); outline: 2px solid var(--accent-ink); }
.cm-l1 td { background: color-mix(in srgb, var(--accent) 15%, var(--surface)); color: var(--text); }
.cm-l2 td { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); color: var(--text); }
.cm-l1 td.num, .cm-l2 td.num { border-left-color: color-mix(in srgb, var(--accent) 40%, var(--surface)); }
.cm-l1 td:first-child, .cm-l2 td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.cm-tree tr.cm-panel > td { border-bottom: 2px solid var(--ink); }
.cm-phead { background: var(--ink); color: var(--ink-text); }
.cm-count { background: color-mix(in srgb, var(--ink-text) 22%, var(--ink)); color: var(--ink-text); }
.cm-close { color: var(--ink-text); border-color: color-mix(in srgb, var(--ink-text) 45%, var(--ink)); }
.cm-close:hover, .cm-close:focus-visible { background: color-mix(in srgb, var(--ink-text) 16%, var(--ink)); }
.cm-st.paid { background: color-mix(in srgb, var(--ok) 16%, var(--surface)); color: var(--text); }
.cm-st.inv { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--text); }
.cm-wstab td.cm-amt { color: var(--text); font-weight: 600; }
.cm-badge { background: color-mix(in srgb, var(--danger) 16%, var(--surface)); color: var(--danger); }

/* v2.33: commission tiles: thin, one line each, spread over the width of the page with space between them */
.cm-tiles { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 4%; margin-bottom: 14px; }
.cm-tiles .tile { flex: 1 1 220px; max-width: 30%; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "lbl val" "sub val"; align-items: center; column-gap: 14px; padding: 9px 16px; min-height: 0; }
.cm-tiles .tile .lbl { grid-area: lbl; margin: 0; font-size: 13px; }
.cm-tiles .tile .sub { grid-area: sub; margin: 0; font-size: 12px; }
.cm-tiles .tile .val { grid-area: val; margin: 0; font-size: 22px; line-height: 1.1; }
@media (max-width: 800px) { .cm-tiles .tile { max-width: none; } }

/* v2.34: worksheets panel: smaller text, long names wrap, and its own left-right scroll bar */
.cm-tree tr.cm-panel > td > .cm-pscroll { width: 0; min-width: 100%; max-height: 360px; overflow: auto; scrollbar-gutter: stable; }
.cm-tree tr.cm-panel > td > .cm-phead { width: 0; min-width: 100%; box-sizing: border-box; }
.cm-wstab { font-size: 11.5px; line-height: 1.3; }
.cm-wstab th { font-size: 10px; }
.cm-wstab td, .cm-wstab th { padding: 4px 8px; }
.cm-wstab td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
.cm-wstab td:nth-child(3), .cm-wstab td:nth-child(4), .cm-wstab td:nth-child(5), .cm-wstab td:nth-child(6) { min-width: 130px; max-width: 220px; }
.cm-wstab td:nth-child(7) { min-width: 90px; max-width: 170px; }
.cm-wstab td:nth-child(1), .cm-wstab td:nth-child(2), .cm-wstab td:nth-child(8), .cm-wstab td.num { white-space: nowrap; }

/* v2.37: no title above the commission table; small Collapse / Expand button */
.cm-head { padding: 6px 12px; }
.btn.cm-small { font-size: 12px; padding: 2px 10px; border-radius: 999px; min-height: 0; line-height: 1.5; }

/* v2.38: worksheet number = link to TIK */
.cm-wslink { font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* v2.40: the whole banner of the worksheets panel closes it */
.cm-phead[data-close] { cursor: pointer; }
.cm-phead[data-close]:hover { background: color-mix(in srgb, var(--ink-text) 10%, var(--ink)); }

/* v2.41: eye button inside password fields */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 40px; }
.pw-eye { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.pw-eye:hover, .pw-eye:focus-visible { color: var(--text); background: var(--surface-2); }

/* v2.43: team time tracked, compared over the last 10 working days */
dialog.trend-dlg { max-width: 980px; }
.trend-dlg .recv-body { overflow: auto; max-height: 80vh; margin-top: 10px; }
.tr-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.tr-facts > div { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; }
.tr-facts .lbl { font-size: 12px; color: var(--text-2); } .tr-facts .val { font-size: 22px; font-weight: 700; letter-spacing: -.02em; } .tr-facts .sub { font-size: 12px; color: var(--text-2); }
.tr-chg { font-weight: 700; color: var(--text); white-space: nowrap; } .tr-chg.up { color: #15803d; } .tr-chg.down { color: #b91c1c; }
.tr-chart { display: flex; align-items: stretch; gap: 10px; height: 210px; padding: 6px 4px 0; border-bottom: 1px solid var(--border); }
.tr-col { flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.tr-val { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 4px; white-space: nowrap; }
.tr-bar-box { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.tr-bar { width: 60%; max-width: 34px; border-radius: 4px 4px 0 0; background: var(--accent); }
.tr-bar.prev { background: color-mix(in srgb, var(--accent) 38%, var(--surface)); }
.tr-bar.today { background: repeating-linear-gradient(135deg, var(--accent) 0 5px, color-mix(in srgb, var(--accent) 55%, var(--surface)) 5px 10px); }
.tr-col:hover .tr-bar { outline: 2px solid var(--text); outline-offset: 1px; }
.tr-day { font-size: 12px; font-weight: 600; margin-top: 5px; } .tr-date { font-size: 11px; color: var(--muted); margin-bottom: 6px; white-space: nowrap; }
.tr-sep { width: 1px; background: var(--border); margin: 0 4px; }
.tr-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 10px; vertical-align: -1px; background: var(--accent); }
.tr-key.prev { margin-left: 0; background: color-mix(in srgb, var(--accent) 38%, var(--surface)); }
.tr-key.today { background: repeating-linear-gradient(135deg, var(--accent) 0 3px, color-mix(in srgb, var(--accent) 55%, var(--surface)) 3px 6px); }
.trend-dlg h3 { margin: 16px 0 6px; font-size: 15px; }
.tr-table td, .tr-table th { white-space: nowrap; }
.tr-table tr.tr-total td { font-weight: 700; border-top: 2px solid var(--border); } .tr-table tr.tr-sub td { color: var(--text-2); font-size: 13px; }
.trend-dlg .recv-body li { display: block; }
@media (max-width: 700px) { .tr-facts { grid-template-columns: 1fr; } }

/* v2.44: My day (own Outlook calendar + Microsoft To Do) */
.my-connect { max-width: 620px; }
.my-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 1000px) { .my-cols { grid-template-columns: 1fr; } }
.my-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; } .my-head h2 { margin: 0; }
.my-day { padding: 10px 0; border-top: 1px solid var(--border); } .my-day:first-child { border-top: 0; }
.my-day.today { box-shadow: inset 3px 0 0 var(--accent); padding-left: 10px; }
.my-dayh { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.my-today { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.my-plus { margin-left: auto; width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 16px; line-height: 1; cursor: pointer; }
.my-plus:hover, .my-plus:focus-visible { border-color: var(--accent); color: var(--accent); }
.my-ev { display: flex; gap: 12px; width: 100%; text-align: left; font: inherit; color: inherit; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border: 0; border-left: 3px solid var(--accent); border-radius: 8px; padding: 7px 10px; margin-top: 5px; cursor: pointer; }
.my-ev.free { background: var(--surface-2); border-left-color: var(--border); }
.my-ev:hover, .my-ev:focus-visible { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.my-time { flex: none; width: 104px; font-variant-numeric: tabular-nums; color: var(--text-2); font-size: 13px; padding-top: 1px; }
.my-what { display: flex; flex-direction: column; min-width: 0; } .my-what b { overflow-wrap: anywhere; }
.my-none { margin: 2px 0 0; }
.my-add { display: flex; gap: 6px; margin-bottom: 10px; } .my-add input[type=text] { flex: 1; min-width: 0; }
.my-tasks { list-style: none; margin: 0; padding: 0; }
.my-tasks li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 2px; border-top: 1px solid var(--border); }
.my-tasks li:first-child { border-top: 0; }
.my-tasks input[type=checkbox] { margin-top: 3px; width: 17px; height: 17px; flex: none; }
.my-tt { flex: 1; display: flex; flex-direction: column; min-width: 0; } .my-ttl { overflow-wrap: anywhere; }
.my-tasks li.done .my-ttl { text-decoration: line-through; color: var(--muted); }
.my-x { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px 6px; border-radius: 6px; font: inherit; }
.my-x:hover, .my-x:focus-visible { color: var(--danger); background: var(--surface-2); }
dialog.my-dlg { max-width: 520px; } .my-dlg .form input, .my-dlg .form textarea { width: 100%; }
.my-check { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 400; }
.my-dlg .actions { align-items: center; }

/* v2.45: a task that is a flagged email opens the email */
.my-mail { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.my-tasks li.done .my-mail { color: var(--muted); }

/* v2.46: each task says whether it is a flagged email or a task typed by hand */
.my-kinds { margin-bottom: 8px; }
.my-kind { flex: none; margin-top: 1px; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.my-kind.mail { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--text); }
.my-kind.manual { background: var(--surface-2); color: var(--text-2); }

/* v2.47: an email task is read inside the site */
button.my-mail { font: inherit; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }
dialog.my-mailview { max-width: 860px; }
.my-mailview h2 { overflow-wrap: anywhere; }
.mv-head { display: grid; gap: 3px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; overflow-wrap: anywhere; }
.mv-head b { display: inline-block; min-width: 92px; color: var(--text-2); font-weight: 600; }
.mv-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; padding: 14px 2px; max-height: 58vh; overflow: auto; }
.my-mailview .actions { align-items: center; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 0; }

/* v2.48: the email with its own layout and signature, in a locked frame */
.mv-tools { display: flex; align-items: center; gap: 8px; padding: 8px 0 6px; }
.mv-frame { display: block; width: 100%; height: 56vh; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.mv-frame[hidden] { display: none; }

/* v2.50: reply to an email from My day */
.mv-reply { border-top: 1px solid var(--border); padding-top: 10px; }
.mv-reply label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.mv-reply textarea { width: 100%; font: inherit; line-height: 1.5; }
.mv-reply .actions { border-top: 0; padding-top: 6px; }
.my-mailview .mv-frame { height: 46vh; }

/* v2.51: forward an email from My day */
.mv-reply input[type=text] { width: 100%; margin-bottom: 8px; }

/* v2.52: the email window laid out like Outlook classic (its own blue, Segoe UI / Calibri) */
dialog.ol { --olb: #0072c6; --olbd: #005a9e; width: min(1040px, 96vw); max-width: none; height: min(880px, 94vh); padding: 0; border: 1px solid var(--olb); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; background: #fff; color: #201f1e; font-family: "Segoe UI", system-ui, Arial, sans-serif; font-size: 13px; }
dialog.ol:not([open]) { display: none; }
.ol-title { flex: none; display: flex; align-items: center; justify-content: space-between; background: var(--olb); color: #fff; padding: 0 0 0 12px; height: 32px; font-size: 13px; }
.ol-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol-title button { font: inherit; width: 46px; height: 32px; border: 0; background: transparent; color: #fff; cursor: pointer; }
.ol-title button:hover, .ol-title button:focus-visible { background: #e81123; }
.ol-ribbon { flex: none; display: flex; gap: 0; background: #f3f2f1; border-bottom: 1px solid #d2d0ce; padding: 4px 6px 0; }
.ol-group { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 2px; padding: 0 10px 0 6px; border-right: 1px solid #d2d0ce; position: relative; padding-bottom: 18px; }
.ol-group:last-child { border-right: 0; }
.ol-gname { position: absolute; bottom: 2px; left: 0; right: 0; text-align: center; font-size: 11px; color: #605e5c; }
.ol-rb { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 62px; padding: 5px 8px 4px; border: 1px solid transparent; border-radius: 2px; background: transparent; color: #201f1e; font: inherit; font-size: 12px; text-decoration: none; cursor: pointer; }
.ol-rb svg { color: var(--olb); }
.ol-rb:hover, .ol-rb:focus-visible { background: #c7e0f4; border-color: #92c0e0; }
.ol-rb:disabled { opacity: .45; cursor: default; background: transparent; border-color: transparent; }
.ol-rb.ol-small { flex-direction: row; min-width: 0; padding: 4px 8px; }
.ol-view { flex-direction: column; margin-left: auto; }
.ol-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; }
.ol-body > .loading, .ol-body > .error, .ol-body > p { margin: 16px; }
.ol-head { flex: none; display: flex; gap: 12px; padding: 12px 16px 10px; border-bottom: 1px solid #edebe9; }
.ol-avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--olb); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; }
.ol-meta { flex: 1; min-width: 0; }
.ol-date { float: right; color: #605e5c; font-size: 12px; margin-left: 12px; }
.ol-from { font-size: 15px; color: #201f1e; overflow-wrap: anywhere; } .ol-addr { color: #605e5c; font-size: 13px; }
.ol-subject { font-size: 14px; font-weight: 600; margin: 2px 0 4px; overflow-wrap: anywhere; } .ol-imp { color: #c50f1f; font-weight: 800; }
.ol-line { color: #323130; font-size: 12px; overflow-wrap: anywhere; } .ol-line span { display: inline-block; min-width: 22px; color: #605e5c; }
.ol-files { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 16px; border-bottom: 1px solid #edebe9; background: #faf9f8; }
.ol-file { border: 1px solid #d2d0ce; background: #fff; border-radius: 2px; padding: 2px 8px; font-size: 12px; }
.ol-frame { flex: 1; min-height: 240px; width: 100%; border: 0; background: #fff; display: block; } .ol-frame[hidden] { display: none; }
.ol-text { flex: 1; white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px 16px; font: 11pt/1.4 Calibri, "Segoe UI", Arial, sans-serif; color: #000; }
.ol-compose { flex: none; max-height: 62%; overflow: auto; border-bottom: 3px solid var(--olb); background: #fff; padding: 10px 14px 8px; }
.ol-cgrid { display: flex; gap: 10px; align-items: stretch; }
.ol-send { flex: none; width: 66px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px solid #c8c6c4; border-radius: 2px; background: #fff; color: #201f1e; font: inherit; font-size: 12px; cursor: pointer; }
.ol-send svg { color: var(--olb); }
.ol-send:hover, .ol-send:focus-visible { background: #c7e0f4; border-color: var(--olb); }
.ol-send:disabled { opacity: .5; cursor: default; }
.ol-fields { flex: 1; min-width: 0; display: grid; gap: 4px; }
.ol-f { display: flex; align-items: center; gap: 8px; }
.ol-fb, .ol-fl { flex: none; width: 62px; text-align: center; font-size: 12px; padding: 4px 0; }
.ol-fb { border: 1px solid #c8c6c4; border-radius: 2px; background: #fff; }
.ol-fl { color: #605e5c; text-align: left; padding-left: 4px; }
.ol-f input { flex: 1; min-width: 0; font: inherit; font-size: 13px; color: #201f1e; background: #fff; border: 0; border-bottom: 1px solid #c8c6c4; border-radius: 0; padding: 4px 2px; }
.ol-f input:focus-visible { outline: 0; border-bottom: 2px solid var(--olb); }
.ol-compose textarea { display: block; width: 100%; margin-top: 8px; border: 0; outline: 0; resize: vertical; font: 11pt/1.4 Calibri, "Segoe UI", Arial, sans-serif; color: #000; background: #fff; padding: 6px 2px; }
.ol-compose textarea:focus-visible { box-shadow: inset 2px 0 0 var(--olb); }
.ol-quote { border-top: 1px solid #b5c4df; margin-top: 6px; padding-top: 6px; font: 11pt/1.35 Calibri, "Segoe UI", Arial, sans-serif; color: #000; overflow-wrap: anywhere; }
.ol-cfoot { display: flex; align-items: center; gap: 8px; margin-top: 6px; } .ol-cfoot .error { margin: 0; }
.ol-sent { margin: 4px 0; padding: 8px 10px; background: #dff6dd; color: #0b5a0b; border-radius: 2px; }
dialog.ol .muted { color: #605e5c; }
dialog.ol .error { color: #a4262c; }

/* v2.53: Carl on My day */
.my-carl { margin-bottom: 14px; }
.my-carl-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.my-carl .ai-log { min-height: 0; max-height: 46vh; margin-bottom: 10px; }
.my-carl .ai-form { border: 1px solid var(--border); border-radius: 14px; padding: 6px 6px 6px 12px; }
.my-carl .ai-form textarea { border: 0; outline: 0; background: transparent; min-height: 38px; resize: none; padding-top: 8px; }
.my-carl .ai-msg.assistant { max-width: 100%; background: var(--surface-2); }
.mc-card { align-self: stretch; border: 1px solid var(--border); border-left: 3px solid var(--orange); border-radius: 10px; padding: 10px 12px; background: var(--surface); display: grid; gap: 6px; }
.mc-card.done { border-left-color: var(--ok); }
.mc-ct { font-weight: 700; }
.mc-f { display: flex; align-items: center; gap: 8px; } .mc-f span { flex: none; width: 56px; font-size: 12px; color: var(--text-2); } .mc-f input { flex: 1; min-width: 0; }
.mc-card textarea { width: 100%; font: inherit; line-height: 1.5; }
.mc-card .error { margin: 0; }
.mc-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* v2.55: known addresses proposed while typing */
.sug-host { position: relative; }
.sug-box { position: absolute; top: 100%; left: 0; right: 0; z-index: 30; margin-top: 2px; max-height: 280px; overflow: auto; background: #fff; color: #201f1e; border: 1px solid #c8c6c4; border-radius: 4px; box-shadow: 0 8px 24px -8px rgba(0,0,0,.35); padding: 3px; }
.sug-box[hidden] { display: none; }
.sug-box button { display: block; width: 100%; text-align: left; font: inherit; font-size: 13px; padding: 6px 8px; border: 0; border-radius: 3px; background: none; color: inherit; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sug-box button span { color: #605e5c; }
.sug-box button.on, .sug-box button:hover { background: #c7e0f4; }
.ol-f.sug-host .sug-box { left: 70px; }
.mc-f.sug-host .sug-box { left: 64px; }

/* v2.56: voice for Carl */
.voice-btn, .voice-lang { flex: none; align-self: flex-end; height: 38px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; font: inherit; }
.voice-btn { width: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.voice-lang { min-width: 38px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.voice-btn:hover, .voice-btn:focus-visible, .voice-lang:hover, .voice-lang:focus-visible { border-color: var(--accent); color: var(--accent); }
.voice-btn.off { opacity: .45; }
.voice-btn.on { background: var(--danger); border-color: var(--danger); color: #fff; animation: voicepulse 1.3s infinite; }
@keyframes voicepulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--danger) 55%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
@media (prefers-reduced-motion: reduce) { .voice-btn.on { animation: none; } }

/* v2.57: attachments open from the email window */
button.ol-file { font: inherit; font-size: 12px; color: #201f1e; cursor: pointer; }
button.ol-file:hover, button.ol-file:focus-visible { background: #c7e0f4; border-color: #0072c6; }

/* v2.58: Carl on WhatsApp (Admin → Connections) */
.wa-form { max-width: 620px; } .wa-form input, .wa-form select { width: 100%; } .wa-form input[readonly] { background: var(--surface-2); font-family: ui-monospace, Consolas, monospace; font-size: 13px; }

/* v2.59: the code box */
.tg-link { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.tg-code { font: 700 30px/1.2 ui-monospace, Consolas, monospace; letter-spacing: .18em; margin: 6px 0; user-select: all; }

/* v2.68: what Carl cost (My day) */
.mc-cost { font: inherit; font-size: 12px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; cursor: pointer; white-space: nowrap; }
.mc-cost:empty { display: none; }
.mc-cost:hover, .mc-cost:focus-visible { border-color: var(--accent); color: var(--text); }

/* v2.70: history of the conversations with Carl on My day */
.my-carl .ai-hist { max-width: none; }
.mc-card.old { border-left-color: var(--border); background: var(--surface-2); }
.mc-oldtext { white-space: pre-wrap; font-size: 13px; color: var(--text-2); max-height: 140px; overflow: auto; }

/* v2.71: who the appointment is with */
.my-with { font-size: 13.5px; color: var(--text); overflow-wrap: anywhere; }
.my-with:empty { display: none; }

/* v2.72: the names of an appointment stand out */
.my-with-w { color: var(--muted); font-size: 12.5px; }
.my-with-n { color: var(--orange); font-weight: 650; }

/* v2.73: email signature (My day) */
dialog.my-sigdlg { max-width: 760px; }
.sg-frame { display: block; width: 100%; height: 300px; margin: 12px 0 4px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }

/* v2.80: calendar, a person who accepted the invitation */
.my-ok { color: #15803d; font-weight: 700; }
:root[data-theme=dark] .my-ok { color: #4ade80; }

/* v2.81: calendar, status of an appointment (Outlook category Done / Cancelled) */
.my-st { align-self: flex-start; font-size: 12px; font-weight: 650; border-radius: 999px; padding: 0 8px; margin: 2px 0; }
.my-st.done { color: #15803d; background: color-mix(in srgb, #15803d 14%, var(--surface)); }
.my-st.cancelled { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, var(--surface)); }
:root[data-theme=dark] .my-st.done { color: #4ade80; }
.my-ev.st-done { border-left-color: #15803d; background: color-mix(in srgb, #15803d 7%, var(--surface)); }
.my-ev.st-cancelled { border-left-color: var(--danger); background: var(--surface-2); }
.my-ev.st-cancelled .my-what b, .my-ev.st-cancelled .my-time { text-decoration: line-through; color: var(--muted); }
.my-stform { margin-top: 12px; }

/* v2.82: calendar, status menu at the right of each appointment */
.my-evrow { display: flex; align-items: stretch; gap: 6px; margin-top: 5px; }
.my-evrow .my-ev { flex: 1; min-width: 0; margin-top: 0; }
.my-stsel { flex: none; align-self: center; font: inherit; font-size: 12px; padding: 4px 6px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; }
.my-evrow.st-done .my-stsel { color: #15803d; border-color: #15803d; font-weight: 650; }
.my-evrow.st-cancelled .my-stsel { color: var(--danger); border-color: var(--danger); font-weight: 650; }
:root[data-theme=dark] .my-evrow.st-done .my-stsel { color: #4ade80; border-color: #4ade80; }

/* v2.83: the status menu sits inside the appointment's bar, at its right end, as a pill */
.my-evrow { position: relative; display: block; }
.my-evrow .my-ev { width: 100%; padding-right: 128px; }
.my-stsel { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border-radius: 999px; padding: 3px 8px; }

/* v2.84: My day without Carl */
.my-carl[hidden] { display: none; }
.fx-list { display: flex; flex-direction: column; gap: 4px; font-size: 13px; } .fx-list label { display: flex; gap: 6px; align-items: flex-start; } .fx-lbl { align-self: start; padding-top: 2px; }

/* v2.85: a user's connections in the user window */
.ul-box { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 10px; } .ul-box h3 { margin: 0 0 6px; font-size: 14px; }
.ul-row { padding: 6px 0; } .ul-url { display: flex; gap: 6px; margin: 6px 0 2px; } .ul-url input { flex: 1; min-width: 0; font: 12px ui-monospace, Consolas, monospace; }

/* v2.86: a document made by Carl */
.doc-link { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; text-decoration: none; }
.doc-link:hover, .doc-link:focus-visible { border-color: var(--accent); color: var(--accent); }

/* v2.88: signature window */
.sg-frame { height: 330px; } .sg-banner { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); } .sg-banner .bar { margin-top: 6px; }

/* v2.89: short numbers of appointments (C…) and tasks (T…) */
.my-time { display: flex; flex-direction: column; }
.my-ref { font: 600 11px ui-monospace, Consolas, monospace; color: var(--accent); letter-spacing: .02em; margin-top: 2px; user-select: all; }
.my-kcol { display: flex; flex-direction: column; align-items: flex-start; flex: none; }

/* v2.92: free times proposed when a task becomes an appointment */
.ev-free { margin-top: 12px; } .ev-free .filters { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }

/* v2.93: Teams link on an appointment */
.my-evrow.has-join .my-ev { padding-right: 232px; }
.my-join { position: absolute; right: 124px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 650; padding: 3px 10px; border-radius: 999px; background: #4b53bc; color: #fff; text-decoration: none; white-space: nowrap; }
.my-join:hover, .my-join:focus-visible { background: #3d44a0; }

/* v2.94: reminders (My day) */
.my-right { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.my-radd { flex-wrap: wrap; } .my-radd input[type=text] { flex: 1 1 100%; } .my-radd select { flex: 1; min-width: 0; }
.my-kind.rem { background: color-mix(in srgb, #c98500 18%, var(--surface)); color: var(--text); }
.my-rems li.done .my-kind.rem { background: var(--surface-2); color: var(--muted); }
.my-rs { font-size: 12px; font-weight: 650; }
.my-ring { position: fixed; z-index: 60; top: 16px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; max-width: min(640px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 12px; background: var(--surface); color: var(--text); border: 2px solid #c98500; box-shadow: 0 12px 32px rgba(0,0,0,.28); }
.my-ring + .my-ring { top: 84px; }

/* v2.94: a conversation with Carl shows its last 3 messages; the earlier ones fold */
.ai-more { align-self: center; border: 1px dashed var(--border); background: none; color: var(--text-2); font: inherit; font-size: 12px; border-radius: 999px; padding: 3px 12px; margin: 0 auto 8px; cursor: pointer; display: block; }
.ai-more:hover, .ai-more:focus-visible { color: var(--accent); border-color: var(--accent); }
.ai-old { display: contents; } .ai-old[hidden] { display: none; }

/* v2.95: closed appointments window */
dialog.my-closed { max-width: 820px; } .my-closed .bar { gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.my-kind.cl-done { color: #15803d; background: color-mix(in srgb, #15803d 14%, var(--surface)); } .my-kind.cl-can { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, var(--surface)); }
.cl-list li { align-items: center; }

/* v2.97: reminders, new look */
.rm-card { --rm: #c98500; }
.rm-card h2 { display: flex; align-items: center; gap: 8px; }
.rm-bell { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: color-mix(in srgb, var(--rm) 16%, var(--surface)); font-size: 16px; }
.rm-count { font-size: 12px; font-weight: 650; color: var(--rm); background: color-mix(in srgb, var(--rm) 12%, var(--surface)); border-radius: 999px; padding: 2px 10px; }
.rm-count:empty { display: none; }
.rm-new { border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, box-shadow .15s; }
.rm-new:focus-within { border-color: var(--rm); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rm) 18%, transparent); }
.rm-text { border: 0; background: none; font: inherit; font-size: 15px; color: var(--text); padding: 4px 2px; width: 100%; outline: none; }
.rm-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.rm-chip { border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: inherit; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 4px 11px; cursor: pointer; }
.rm-chip:hover, .rm-chip:focus-visible { border-color: var(--rm); color: var(--text); }
.rm-chip.on { background: var(--rm); border-color: var(--rm); color: #fff; }
.rm-when { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rm-pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 3px 8px; font-size: 13px; }
.rm-pill input, .rm-pill select { border: 0; background: none; font: inherit; font-size: 13px; color: var(--text); padding: 2px 0; outline: none; max-width: 150px; }
.rm-pill:focus-within { border-color: var(--rm); }
.rm-add { border-radius: 10px; }
.rm-day { margin: 14px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.rm-day::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.rm-day.today { color: var(--rm); }
.rm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rm-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px 9px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--rm); transition: box-shadow .15s, transform .15s; }
.rm-item:hover { box-shadow: 0 6px 18px -10px rgba(0,0,0,.35); transform: translateY(-1px); }
.rm-item.rm-soon { background: color-mix(in srgb, var(--rm) 9%, var(--surface)); }
.rm-item.rang { border-left-color: var(--border); opacity: .72; }
.rm-time { flex: none; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; min-width: 52px; }
.rm-item.rang .rm-time { font-weight: 500; color: var(--muted); }
.rm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rm-what { font-weight: 600; overflow-wrap: anywhere; }
.rm-item.rang .rm-what { text-decoration: line-through; font-weight: 500; }
.rm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--text-2); }
.rm-meta .my-ref { margin-top: 0; }
.rm-in { font-weight: 650; color: var(--rm); }
.rm-acts { flex: none; display: flex; gap: 2px; opacity: .45; transition: opacity .15s; }
.rm-item:hover .rm-acts, .rm-item:focus-within .rm-acts { opacity: 1; }
.rm-acts button { border: 0; background: none; color: var(--text-2); cursor: pointer; font: inherit; font-size: 12px; font-weight: 650; padding: 4px 8px; border-radius: 8px; }
.rm-acts button:hover, .rm-acts button:focus-visible { background: var(--surface-2); color: var(--text); }
.rm-acts .my-rx:hover, .rm-acts .my-rx:focus-visible { color: var(--danger); }
.rm-fold { margin-top: 12px; border: 0; background: none; color: var(--text-2); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; padding: 4px 0; }
.rm-fold:hover { color: var(--text); } .rm-fold + .rm-list { margin-top: 6px; }
.rm-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 22px 12px 8px; color: var(--text-2); font-size: 13px; }
.rm-empty-i { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: color-mix(in srgb, var(--rm) 14%, var(--surface)); margin-bottom: 4px; }
.rm-empty b { color: var(--text); font-size: 14px; }
.rm-foot { margin: 12px 0 0; font-size: 11.5px; color: var(--muted); }
.rm-none { margin: 10px 0 0; }
:root[data-theme=dark] .rm-card { --rm: #e0a526; } :root[data-theme=dark] .rm-chip.on { color: #1a1300; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .rm-card { --rm: #e0a526; } :root:not([data-theme=light]) .rm-chip.on { color: #1a1300; } }
@media (prefers-reduced-motion: reduce) { .rm-item, .rm-new, .rm-acts { transition: none; } .rm-item:hover { transform: none; } }

/* v2.98: reminders, text field without its own frame */
.rm-new input.rm-text, .rm-new input.rm-text:focus { border: 0; background: none; box-shadow: none; outline: none; padding: 4px 2px; }
.rm-pill input, .rm-pill input:focus, .rm-pill select, .rm-pill select:focus { border: 0; background: none; box-shadow: none; }

/* v2.99: Old business */
.ob-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 12px; }
.ob-tab { border: 0; background: none; font: inherit; font-weight: 600; font-size: 13px; color: var(--text-2); padding: 6px 14px; border-radius: 9px; cursor: pointer; }
.ob-tab.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.14); }
.ob-tiles { margin-bottom: 12px; }
.ob-filters { padding: 10px 12px; margin-bottom: 12px; } .ob-filters .filters { margin-bottom: 8px; }
.ob-bar { gap: 8px; flex-wrap: wrap; margin: 0; } .ob-bar input[type=search] { flex: 1 1 180px; min-width: 0; }
.ob-wrap table { width: 100%; } .ob-wrap th[data-s] { cursor: pointer; white-space: nowrap; user-select: none; } .ob-wrap th.num, .ob-wrap td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ob-row { cursor: pointer; } .ob-row:hover td { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); } .ob-row.open td { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.ob-b { display: inline-block; min-width: 54px; text-align: center; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 9px; }
.ob-b.fresh { background: color-mix(in srgb, #15803d 16%, var(--surface)); color: #15803d; } .ob-b.warm { background: color-mix(in srgb, #c98500 18%, var(--surface)); color: #9a6500; }
.ob-b.cool { background: color-mix(in srgb, #ea580c 16%, var(--surface)); color: #c2410c; } .ob-b.cold { background: color-mix(in srgb, var(--danger) 14%, var(--surface)); color: var(--danger); } .ob-b.frozen { background: var(--surface-2); color: var(--muted); }
.ob-late { font-size: 11px; font-weight: 700; color: #c2410c; background: color-mix(in srgb, #ea580c 14%, var(--surface)); border-radius: 999px; padding: 0 7px; white-space: nowrap; }
.ob-ag { display: inline-block; font-size: 11.5px; border-radius: 6px; padding: 0 6px; margin: 1px 3px 1px 0; white-space: nowrap; background: var(--surface-2); color: var(--text-2); } .ob-ag.ss { border: 1px dashed var(--border); background: none; }
.ob-drill > td { background: var(--surface-2); padding: 10px 12px 14px; } .ob-deals { width: 100%; font-size: 12.5px; background: var(--surface); border-radius: 8px; }
.ob-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-bottom: 8px; font-size: 13px; } .ob-contact a { text-decoration: none; }
.ob-more, .ob-none { padding: 12px; text-align: center; margin: 0; }
.ob-exc { margin-top: 12px; padding: 10px 14px; } .ob-exc summary { cursor: pointer; font-weight: 600; } .ob-exc ul { margin: 8px 0; padding-left: 18px; } .ob-exc li { margin: 4px 0; }
:root[data-theme=dark] .ob-b.fresh { color: #4ade80; } :root[data-theme=dark] .ob-b.warm { color: #e0a526; } :root[data-theme=dark] .ob-b.cool, :root[data-theme=dark] .ob-late { color: #fb923c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .ob-b.fresh { color: #4ade80; } :root:not([data-theme=light]) .ob-b.warm { color: #e0a526; } :root:not([data-theme=light]) .ob-b.cool, :root:not([data-theme=light]) .ob-late { color: #fb923c; } }

/* v3.00: sales analysis — the common bar, the period window, Month over month */
.sl-bar { padding: 10px 14px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 8px; }
.sl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sl-row select { font: inherit; font-size: 13px; }
.sl-lbl { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); width: 74px; flex: none; }
.sl-period { border: 0; background: var(--accent); color: #fff; font: inherit; font-weight: 650; font-size: 13px; border-radius: 999px; padding: 5px 14px; cursor: pointer; }
.sl-period:hover, .sl-period:focus-visible { filter: brightness(1.1); }
.sl-chip { border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: inherit; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 11px; cursor: pointer; white-space: nowrap; }
.sl-chip:hover, .sl-chip:focus-visible { border-color: var(--accent); color: var(--text); }
.sl-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.sl-chip.gr.on { background: #0f766e; border-color: #0f766e; }
.sl-chip.sm { min-width: 46px; text-align: center; }
.sl-link { border: 0; background: none; color: var(--accent); font: inherit; font-size: 12px; cursor: pointer; padding: 2px 6px; text-decoration: underline; }
.sl-empty { display: flex; flex-direction: column; gap: 4px; align-items: center; padding: 36px 16px; text-align: center; }
dialog.sl-pick { max-width: 520px; }
.sl-cap { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 6px 0; }
.sl-years, .sl-months { display: flex; flex-wrap: wrap; gap: 6px; }
.sl-year { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.sl-yh { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 13px; }
.sl-pick .actions { margin-top: 14px; }
.ob-who { display: inline-flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.mm-metric { margin: 0; }
.mm-only { margin: 0; }
.mm-wrap { padding: 0; overflow: auto; max-height: calc(100vh - 250px); }
.mm-t { border-collapse: separate; border-spacing: 0; font-size: 12.5px; white-space: nowrap; min-width: 100%; }
.mm-t th, .mm-t td { padding: 6px 8px; border-bottom: 1px solid var(--border); }
.mm-t thead th { position: sticky; top: 0; z-index: 3; background: var(--surface-2); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); cursor: pointer; user-select: none; }
.mm-t th.num, .mm-t td.num { text-align: right; font-variant-numeric: tabular-nums; }
.mm-t td.mm-dim, .mm-t th.mm-dim { max-width: 190px; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.mm-dh { color: var(--muted); cursor: default; }
.mm-z { color: var(--muted); }
.mm-dc { min-width: 62px; }
.mm-tw { color: var(--muted); }
.mm-tot { font-weight: 650; border-left: 1px solid var(--border); }
.mm-rh { white-space: nowrap; }
.mm-dots { display: inline-flex; gap: 2px; vertical-align: middle; }
.mm-dots i { width: 8px; height: 8px; border-radius: 2px; background: var(--border); display: block; }
.mm-dots i.on { background: #16a34a; }
.mm-rn { margin-left: 6px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mm-all td { background: color-mix(in srgb, #16a34a 6%, var(--surface)); }
.mm-d { font-size: 11px; font-weight: 650; }
.mm-d.up { color: #15803d; } .mm-d.down { color: var(--danger); } .mm-d.same { color: var(--muted); }
.mm-new, .mm-lost { font-size: 10px; font-weight: 800; letter-spacing: .04em; border-radius: 4px; padding: 1px 6px; color: #fff; }
.mm-new { background: #16a34a; } .mm-lost { background: var(--danger); }
.mm-t tfoot td { position: sticky; bottom: 0; background: var(--surface-2); border-top: 2px solid var(--border); z-index: 2; }
.mm-drill { white-space: normal; max-width: calc(100vw - 340px); position: sticky; left: 12px; }
:root[data-theme=dark] .mm-d.up { color: #4ade80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .mm-d.up { color: #4ade80; } }

/* v3.01: sales radar */
.sl-fixed { font-size: 13px; font-weight: 650; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; }
.rd-why { font-size: 12px; } .rd-why b { color: #c2410c; }
.rd-stake { font-weight: 700; font-variant-numeric: tabular-nums; }
.rd-lane b { display: block; } .rd-lane .rd-to { color: var(--muted); }
.rd-acts { display: flex; gap: 4px; flex-wrap: nowrap; }
.rd-acts button { border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: inherit; font-size: 12px; font-weight: 600; border-radius: 8px; padding: 3px 8px; cursor: pointer; white-space: nowrap; }
.rd-acts button:hover, .rd-acts button:focus-visible { border-color: var(--accent); color: var(--text); }
.rd-acts button.lost:hover { border-color: var(--danger); color: var(--danger); }
.rd-f { font-size: 12px; color: var(--text-2); max-width: 240px; white-space: normal; }
.rd-f .st { font-weight: 700; } .rd-f .st.lost { color: var(--danger); } .rd-f .st.ok { color: #15803d; }
.rd-digest { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 14px; }
dialog.rd-dlg { max-width: 520px; } .rd-dlg .rd-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0; }
.rd-dlg .rd-opts label { border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; cursor: pointer; display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.rd-dlg .rd-opts label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.rd-dlg .rd-opts small { display: block; color: var(--muted); }
.rd-dlg textarea, .rd-dlg select, .rd-dlg input[type=date] { width: 100%; }
:root[data-theme=dark] .rd-f .st.ok { color: #4ade80; } :root[data-theme=dark] .rd-why b { color: #fb923c; }

/* v3.02: scroll bars. Every wide table scrolls sideways with a bar that is always visible and easy to grab; the long
   tables of the sales pages scroll inside their frame, so the bar stays at the bottom of the screen and the column
   titles stay at the top. */
.tbl-wrap, .mm-wrap, .cm-pscroll, .ob-drill > td > div { overflow-x: auto; scrollbar-width: auto; scrollbar-color: color-mix(in srgb, var(--text-2) 55%, transparent) var(--surface-2); }
.tbl-wrap::-webkit-scrollbar, .mm-wrap::-webkit-scrollbar, .cm-pscroll::-webkit-scrollbar, .ob-drill > td > div::-webkit-scrollbar { height: 14px; width: 14px; }
.tbl-wrap::-webkit-scrollbar-track, .mm-wrap::-webkit-scrollbar-track, .cm-pscroll::-webkit-scrollbar-track, .ob-drill > td > div::-webkit-scrollbar-track { background: var(--surface-2); border-radius: 8px; }
.tbl-wrap::-webkit-scrollbar-thumb, .mm-wrap::-webkit-scrollbar-thumb, .cm-pscroll::-webkit-scrollbar-thumb, .ob-drill > td > div::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--text-2) 55%, transparent); border-radius: 8px; border: 3px solid var(--surface-2); }
.tbl-wrap::-webkit-scrollbar-thumb:hover, .mm-wrap::-webkit-scrollbar-thumb:hover { background: var(--text-2); }
.tbl-wrap::-webkit-scrollbar-corner, .mm-wrap::-webkit-scrollbar-corner { background: var(--surface-2); }
.ob-wrap { overflow: auto; max-height: calc(100vh - 150px); padding: 0; }
.ob-wrap > div > table { min-width: 1180px; border-collapse: separate; border-spacing: 0; }
.ob-wrap > div > table > thead th { position: sticky; top: 0; z-index: 3; background: var(--surface-2); }
.ob-wrap > div > table > tbody > tr > td, .ob-wrap > div > table > thead th { padding-left: 10px; padding-right: 10px; }
.ob-drill > td > div { max-width: calc(100vw - 330px); position: sticky; left: 12px; }
.ob-deals { min-width: 1000px; }
.mm-wrap { max-height: calc(100vh - 150px); }

/* v3.03: agent performance */
.pf-rank { color: var(--muted); font-variant-numeric: tabular-nums; width: 28px; }
.pf-pts { font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; }
.pf-house { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted); border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; margin-left: 6px; }
.pf-split { display: inline-flex; height: 10px; width: 120px; border-radius: 999px; overflow: hidden; background: var(--surface-2); vertical-align: middle; }
.pf-split i { display: block; height: 100%; } .pf-split .both { background: #0f766e; } .pf-split .bs { background: #5b5bd6; } .pf-split .ss { background: #c98500; }
.pf-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--text-2); padding: 8px 12px; border-top: 1px solid var(--border); }
.pf-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.pf-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 26px; vertical-align: middle; }
.pf-bars i { display: block; width: 7px; min-height: 2px; background: var(--accent); border-radius: 2px 2px 0 0; opacity: .85; }
.pf-bars i.z { background: var(--border); }
.pf-call { font-weight: 700; color: #c2410c; } :root[data-theme=dark] .pf-call { color: #fb923c; }
.pf-rule { margin: 0 0 12px; }

/* v3.05: agent performance, month by month */
.pf-met { align-items: center; margin: 0 0 10px; } .pf-met .sl-lbl { width: auto; margin-right: 4px; }
.pf-best { font-weight: 750; color: #15803d; } :root[data-theme=dark] .pf-best { color: #4ade80; }

/* v3.06: Carl at the top of every page */
.carl-top { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 8px 10px; margin-bottom: 14px; }
.ct-form { display: flex; align-items: center; gap: 8px; }
.ct-form .claude-mark { width: 20px; height: 20px; flex: none; }
.ct-name { font-size: 13px; flex: none; }
.ct-form textarea { flex: 1; min-width: 0; resize: none; border: 0; background: none; box-shadow: none; outline: none; font: inherit; font-size: 14px; padding: 6px 4px; max-height: 120px; }
.ct-form textarea:focus { border: 0; box-shadow: none; outline: none; }
.carl-top:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.ct-log { min-height: 0; max-height: 38vh; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.ct-log[hidden] { display: none; }
.ct-log .ai-msg.assistant { max-width: 100%; background: var(--surface-2); }
.carl-top + iframe.timeline { height: calc(100vh - 180px); }

/* v3.07 */
.pf-met { display: flex; flex-wrap: wrap; } .pf-dsw { margin: 0; }

/* v3.09: the worksheets behind a figure of Agent performance */
.pf-go { cursor: pointer; } .pf-go:hover { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); text-decoration: underline; }
dialog.pf-dlg { width: min(1500px, 96vw); max-width: none; height: 90vh; display: flex; flex-direction: column; padding: 14px 16px; }
.pf-dlg .lb-bar { gap: 10px; flex: none; } .pf-swrap { flex: 1; min-height: 0; max-height: none; border: 1px solid var(--border); border-radius: 10px; }
.pf-swrap tfoot td { position: sticky; bottom: 0; background: var(--surface-2); border-top: 2px solid var(--border); z-index: 2; }

/* v3.10: summary under the worksheets of a figure; "all statistics" pill */
.pf-sum { flex: none; margin-top: 10px; max-height: 34vh; overflow: auto; }
.pf-sh { font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.pf-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1000px) { .pf-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pf-card { border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); padding: 9px 12px; min-width: 0; }
.pf-ct { font-size: 12px; font-weight: 700; letter-spacing: .02em; margin-bottom: 4px; }
.pf-card ol { margin: 0; padding-left: 18px; font-size: 12.5px; }
.pf-card li { margin: 3px 0; } .pf-card li > b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pf-card li > span { color: var(--text-2); font-size: 12px; }
.pf-card .pos { color: #15803d; } .pf-card .neg { color: var(--danger); } .pf-ch { margin-top: 4px; }
:root[data-theme=dark] .pf-card .pos { color: #4ade80; }
.pf-allchip { font-weight: 650; margin-right: 10px; }

/* v3.11: History on Carl's strip */
.ct-hist { max-width: none; margin: 8px 0 0; }
.ct-form .btn.cm-small { flex: none; white-space: nowrap; }

/* v3.13: month by month, every statistic of an agent on its own line */
.pf-lines td.pf-agent, .pf-lines td.pf-rank { vertical-align: top; background: var(--surface); }
.pf-lines td.pf-stat, .mm-t tfoot td.pf-stat { font-size: 11.5px; font-weight: 650; color: var(--text-2); white-space: nowrap; text-align: left; }
.pf-lines tr.pf-first > td { border-top: 2px solid var(--border); }
.pf-lines tr.pf-alt > td:not(.pf-agent):not(.pf-rank) { background: color-mix(in srgb, var(--text) 2.5%, var(--surface)); }
.pf-lines tbody td { padding-top: 4px; padding-bottom: 4px; }
.pf-met .chip[disabled] { opacity: .6; cursor: default; }
.pf-met .pf-dsw + .pf-dsw { margin-left: 14px; }

/* v3.14 */
.pf-neg { color: var(--danger); }

/* v3.21: Carl looks the same on every page as on My day (title line with cost and History, chat bar at the bottom), and folds */
.carl-top.my-carl { border-radius: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: none; }
.carl-top.my-carl:focus-within { border-color: var(--border); box-shadow: none; }
.my-carl .ai-log[hidden] { display: none; }
.my-carl .ai-form { display: flex; align-items: center; gap: 8px; }
.my-carl .ai-form textarea { flex: 1; min-width: 0; }
/* folded: the conversation and the history are put away, the bar to write to Carl stays */
.my-carl.folded > :not(.my-carl-head):not(form) { display: none !important; }
.my-carl.folded > form { margin-top: 8px; }
.my-carl.folded .my-carl-head { margin-bottom: 0; }
.my-carl.folded .mc-cost, .my-carl.folded #cthist, .my-carl.folded #ctx, .my-carl.folded #mchist, .my-carl.folded #mcnew { display: none; }
.carl-fold { white-space: nowrap; }
.carl-top .ct-log { border-top: 0; padding-top: 0; margin-top: 0; }

/* ---- receipts ---- */
.rc-scanbox { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.rc-scan { font-size: 17px; padding: 14px 22px; cursor: pointer; }
.rc-file, .rc-pay { cursor: pointer; }
.rc-pay select { margin-left: 6px; }
.rc-filter { flex-wrap: wrap; gap: 8px; align-items: center; }
tr.rc-new td { background: rgba(217,164,65,.10); }
dialog.rc-entry { max-width: 1100px; overflow: auto; }
.rc-two { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.rc-pic { position: sticky; top: 0; max-height: 78vh; overflow: auto; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.rc-pic img { display: block; width: 100%; }
.rc-pic iframe { width: 100%; height: 74vh; border: 0; }
.rc-form { grid-template-columns: 120px 1fr; max-width: none; }
.rc-unsure { background: #fff3c4 !important; color: #222 !important; border-color: #d9a441 !important; }
.rc-warn { background: #fff3c4; color: #5a4300; border-radius: 8px; padding: 6px 10px; }
.rc-cardrow { display: flex; gap: 6px; margin-bottom: 6px; }
.rc-cardrow input[data-k=last4] { width: 76px; }
.rc-cardrow input[data-k=label] { flex: 1; min-width: 0; }
/* the receipt window (Yanick, 2026-10-27): wide, the document on the larger side, a PDF page seen whole */
dialog.recv.rc-entry { max-width: 1400px; max-height: 94vh; }
.rc-entry .rc-two { grid-template-columns: minmax(320px, 3fr) minmax(320px, 2fr); }
.rc-entry .rc-pic { max-height: 84vh; }
.rc-entry .rc-pic iframe { height: 82vh; }
@media (max-width: 760px) { .rc-entry .rc-two { grid-template-columns: 1fr; } .rc-entry .rc-pic { max-height: 60vh; } .rc-entry .rc-pic iframe { height: 58vh; } }
@media (max-width: 760px) { .rc-two { grid-template-columns: 1fr; } .rc-pic { position: static; max-height: 46vh; } .rc-scan { width: 100%; text-align: center; font-size: 19px; padding: 18px; } }

.vt-file { padding: 4px 0; }
.rc-curcol { color: var(--text-2); white-space: nowrap; }
.rc-ref { white-space: nowrap; font-weight: 600; }
.rc-selbar { gap: 10px; align-items: center; flex-wrap: wrap; min-height: 38px; }
.rc-cardpick { display: flex; gap: 6px; align-items: center; }
.rc-cardpick select { flex: 1; min-width: 0; }
.rc-st { border-radius: 999px; padding: 3px 8px; font-size: 13px; }
.rc-st1 { border-color: #d9a441; background: rgba(217,164,65,.14); }
.rc-st2 { border-color: #2f7fd1; background: rgba(47,127,209,.12); }
.rc-st3 { border-color: #1f8a4c; background: rgba(31,138,76,.14); }
.ai-msg.queued { opacity: .7; border-style: dashed; }
.my-weekh { margin: 14px 0 4px; padding: 4px 10px; border-radius: 8px; background: var(--surface-2, rgba(127,127,127,.12)); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }
.my-weekh:first-child { margin-top: 0; }
.my-more { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }

/* ---- My day: the emails window ---- */
dialog.my-mails { max-width: 1000px; max-height: 90vh; overflow: auto; }
.mm-list { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.mm-row { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--border); }
.mm-row:last-child { border-bottom: 0; }
.mm-main { display: grid; grid-template-columns: 14px 190px 1fr auto; gap: 8px; align-items: baseline; text-align: left; background: none; border: 0; padding: 8px 10px; cursor: pointer; color: inherit; font: inherit; min-width: 0; }
.mm-main:hover { background: rgba(127,127,127,.08); }
.mm-dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--border); display: inline-block; }
.mm-row.unread .mm-dot { background: #2f7fd1; border-color: #2f7fd1; }
.mm-row.unread .mm-from, .mm-row.unread .mm-subj { font-weight: 600; }
.mm-from, .mm-subj { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-prev { font-weight: 400; color: var(--text-2); }
.mm-at { color: var(--text-2); font-size: 12px; white-space: nowrap; }
.mm-acts { display: flex; gap: 4px; align-items: center; padding: 0 8px; }
.mm-body { grid-column: 1 / -1; padding: 8px 14px 12px 32px; background: rgba(127,127,127,.06); }
.mm-text { white-space: pre-wrap; word-break: break-word; font: inherit; margin: 8px 0 0; max-height: 46vh; overflow: auto; }
.mc-mails { margin: 4px 0 8px; }
@media (max-width: 760px) { .mm-main { grid-template-columns: 14px 1fr auto; } .mm-subj { grid-column: 2 / -1; } .mm-row { grid-template-columns: 1fr; } .mm-acts { padding: 0 8px 8px 32px; } }
.mm-more { text-align: center; margin: 10px 0 0; }
.mm-acts a.btn { text-decoration: none; }
.mm-files { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 6px 0 2px; }
.mm-reply { display: flex; gap: 8px; margin-top: 10px; }
.mm-compose { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.mm-compose textarea { width: 100%; font: inherit; margin-top: 6px; }
.mm-compose .mc-f { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.mm-compose .mc-f span { width: 60px; color: var(--text-2); font-size: 13px; }
.mm-compose .mc-f input { flex: 1; min-width: 0; }
/* ---- Mail page ---- */
.mm-bar { flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.mm-bar input[type=search] { min-width: 220px; flex: 0 1 300px; }
.mm-un { white-space: nowrap; }
.mm-empty { padding: 18px 4px; }
#mlbox > .mm-compose { margin: 0 0 12px; }

/* ---- the user's own menu ---- */
.side-edit { display: block; width: 100%; margin-top: 14px; padding: 7px 12px; border: 1px dashed var(--border); border-radius: 6px; background: none; color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.side-edit:hover { background: var(--surface-2); color: var(--text); }
dialog.menu-edit { max-width: 720px; max-height: 90vh; overflow: auto; }
.me-sec { border: 1px solid var(--border); border-radius: 10px; margin: 10px 0; }
.me-head { display: flex; gap: 6px; align-items: center; padding: 8px 10px; background: var(--surface-2, rgba(127,127,127,.1)); border-radius: 10px 10px 0 0; }
.me-name { flex: 0 1 280px; font-weight: 600; }
.me-items { padding: 6px 8px; min-height: 38px; }
.me-items.over { outline: 2px dashed var(--accent); outline-offset: -4px; }
.me-item { display: flex; gap: 6px; align-items: center; padding: 5px 6px; border-radius: 6px; cursor: grab; }
.me-item:hover { background: rgba(127,127,127,.08); }
.me-item.dragging { opacity: .4; }
.me-item.over { box-shadow: 0 -2px 0 var(--accent); }
.me-grip { color: var(--muted, #999); }
.me-label { display: flex; gap: 8px; align-items: center; }
.me-empty { margin: 4px 6px; }
.me-gdrag { cursor: grab; padding: 2px 4px; font-size: 16px; }
.me-sec.dragging { opacity: .45; }
.me-sec.over { box-shadow: 0 -3px 0 var(--accent); }

/* ---- Mail page, in three panes like Outlook ---- */
.mp-cmd { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px 10px 0 0; }
.mp-cmd input[type=search] { flex: 1 1 260px; max-width: 460px; }
.mp-cmd #mmnew { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; padding: 8px 16px; }
.mp-note { margin: 6px 2px; }
.mp-grid { display: grid; grid-template-columns: var(--mp-w, 380px) 7px minmax(320px, 1fr); height: calc(100vh - 250px); min-height: 420px; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 10px 10px; overflow: hidden; background: var(--surface); }
.mp-folders { border-right: 1px solid var(--border); padding: 8px 6px; display: flex; flex-direction: column; gap: 2px; background: var(--surface-2, rgba(127,127,127,.06)); }
.mp-folders button { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 8px 10px; border: 0; border-radius: 6px; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.mp-folders button:hover { background: rgba(127,127,127,.12); }
.mp-folders button.on { background: color-mix(in srgb, var(--brand) 14%, transparent); font-weight: 600; box-shadow: inset 3px 0 0 var(--brand); }
.mp-folders button b { color: var(--brand); font-size: 13px; }
.mp-list { border-right: 1px solid var(--border); overflow-y: auto; }
.mp-tabs { position: sticky; top: 0; z-index: 1; display: flex; gap: 14px; align-items: center; padding: 8px 12px 0; background: var(--surface); border-bottom: 1px solid var(--border); }
.mp-tabs button { border: 0; background: none; padding: 4px 2px 8px; font: inherit; color: var(--text-2); cursor: pointer; border-bottom: 2px solid transparent; }
.mp-tabs button.on { color: var(--text); font-weight: 600; border-bottom-color: var(--brand); }
.mp-tabs .muted { margin-left: auto; padding-bottom: 6px; }
.mp-item { border-bottom: 1px solid var(--border); border-left: 3px solid transparent; }
.mp-item.unread { border-left-color: var(--brand); }
.mp-item.sel { background: rgba(15,108,189,.12); }
.mp-item .mm-main { display: flex; gap: 10px; align-items: flex-start; width: 100%; grid-template-columns: none; padding: 9px 10px; }
.mp-av { flex: none; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.mp-av.big { width: 40px; height: 40px; font-size: 14px; }
.mp-body { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 1px; }
.mp-l1 { display: flex; gap: 8px; justify-content: space-between; align-items: baseline; }
.mp-from, .mp-subj, .mp-prev { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-time { flex: none; font-size: 12px; color: var(--text-2); }
.mp-subj { font-size: 13.5px; }
.mp-prev { font-size: 12.5px; color: var(--text-2); }
.mp-item.unread .mp-from { font-weight: 700; }
.mp-item.unread .mp-subj { font-weight: 600; color: var(--brand); }
.mp-item.unread .mp-time { color: var(--brand); font-weight: 600; }
.mp-read { overflow-y: auto; padding: 0 16px 14px; display: flex; flex-direction: column; min-width: 0; }
.mp-rbar { position: sticky; top: 0; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 0; background: var(--surface); border-bottom: 1px solid var(--border); }
.mp-rbar a.btn { text-decoration: none; }
.mp-div { width: 1px; align-self: stretch; background: var(--border); margin: 0 4px; }
.mp-subject { font-size: 19px; font-weight: 600; margin: 14px 0 10px; }
.mp-meta { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.mp-who { flex: 1; min-width: 0; }
.mp-when { flex: none; }
.mp-frame { flex: 1 1 auto; width: 100%; min-height: 360px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.mp-text { max-height: none; }
.mp-pics { margin: 0 0 6px; }
.mp-none { margin: auto; text-align: center; color: var(--text-2); }
.mp-none-ic { font-size: 54px; opacity: .35; }
.mp-read > .mm-compose { margin-top: 14px; }
@media (max-width: 1000px) { .mp-grid { grid-template-columns: 1fr; height: auto; } .mp-folders { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--border); } .mp-list { max-height: 46vh; border-right: 0; border-bottom: 1px solid var(--border); } .mp-read { min-height: 50vh; } }
/* the Mail list: these names also exist for an older block, so they are set again here */
.mp-item .mp-from { color: inherit; font-size: 14px; font-weight: 400; }
.mp-item.unread .mp-from { font-weight: 700; }
.mp-item .mp-time { font-size: 12px; }

/* Mail: the bar between the list and the reading pane, and the folders under Mail in the left menu */
.mp-split { cursor: col-resize; background: var(--border); position: relative; touch-action: none; }
.mp-split::after { content: ''; position: absolute; top: 50%; left: 2px; width: 3px; height: 34px; margin-top: -17px; border-radius: 2px; background: var(--text-2); opacity: .55; }
.mp-split:hover, .mp-split:focus-visible, .mp-grid.resizing .mp-split { background: var(--brand); outline: 0; }
.mp-split:hover::after, .mp-grid.resizing .mp-split::after { background: #fff; opacity: 1; }
.mp-grid.resizing { user-select: none; cursor: col-resize; }
.mp-grid.resizing iframe { pointer-events: none; }
.mp-list { border-right: 0; }
.mp-fname { font-size: 15px; padding-bottom: 6px; }
.side-sub a { padding: 6px 12px 6px 40px; font-size: 13.5px; display: flex; justify-content: space-between; align-items: center; }
.side-sub a b { color: var(--brand); font-size: 12.5px; }
@media (max-width: 1000px) { .mp-grid { grid-template-columns: 1fr; } .mp-split { display: none; } }

/* Mail in the left menu: a block of its own, with an arrow that folds its folders */
.side-mail-top { display: flex; align-items: center; gap: 2px; }
.side-mail-top > a { flex: 1; min-width: 0; }
.side-mail-fold { background: none; border: 0; border-radius: 6px; padding: 6px 9px; cursor: pointer; color: var(--muted); font: inherit; }
.side-mail-fold:hover { background: var(--surface-2); }
.side-mail-fold .chev { display: inline-block; transition: transform .15s; }
.side-mail.open .side-mail-fold .chev { transform: rotate(90deg); }
.side-mail .side-sub { display: none; }
.side-mail.open .side-sub { display: block; }

/* Mail: the signature shown under the text being written */
.mc-sig { margin-top: 8px; }
.mc-sig-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.mc-sig-frame { display: block; width: 100%; height: 215px; border: 1px dashed var(--border); border-radius: 8px; background: #fff; }

/* The window "My conversations with Carl": search in everything asked on the site, by email, on WhatsApp */
dialog.carl-find { width: min(860px, 96vw); }
.ai-hist-head .ai-find { margin-left: auto; }
.cf-bar { display: flex; gap: 8px; margin: 10px 0; } .cf-bar input { flex: 1; min-width: 0; }
.cf-list { list-style: none; margin: 0; padding: 0; max-height: 62vh; overflow: auto; }
.cf-list li { border-top: 1px solid var(--border); }
.cf-list button { display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; background: none; border: 0; padding: 9px 6px; font: inherit; color: inherit; cursor: pointer; border-radius: 8px; }
.cf-list button:hover, .cf-list button:focus-visible { background: var(--surface-2); }
.cf-l1 { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; } .cf-l1 b { overflow-wrap: anywhere; }
.cf-ch { flex: none; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); white-space: nowrap; }
.cf-snip { color: var(--text-2); font-size: 13px; overflow-wrap: anywhere; }
.cf-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cf-talk { max-height: 62vh; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.cf-msg { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
.cf-msg.me { background: var(--surface-2); }
.cf-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.carl-find mark { background: #ffe58a; color: #1f2933; border-radius: 2px; padding: 0 1px; }

/* Every search box of the site: one look (magnifier, soft border, round corners, a ring when it has the focus) */
input[type=search] {
  -webkit-appearance: none; appearance: none; height: 38px; padding: 0 12px 0 36px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8b93' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.8-3.8'/%3E%3C/svg%3E") no-repeat 11px center / 16px 16px;
  color: var(--text); font-size: 14px; outline: 0; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
input[type=search]::placeholder { color: var(--muted); }
input[type=search]:hover { border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }
input[type=search]:focus { outline: 0; border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
input[type=search]:disabled { background-color: var(--surface-2); cursor: not-allowed; }
input[type=search]::-webkit-search-cancel-button {
  -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin-left: 6px; cursor: pointer; opacity: .7;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8b93' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") no-repeat center / 14px 14px;
}
input[type=search]::-webkit-search-cancel-button:hover { opacity: 1; }
.sfield input[type=search] { background-image: none; }

/* Pictures seen one after the other (attachments of an email): arrows at the sides, small pictures under */
dialog.pic-view { width: min(1400px, 96vw); }
.pv-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 50vw; }
.pv-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 46vh; background: #111; border-radius: 8px; }
dialog.pic-view .pv-stage img { max-height: 72vh; max-width: 100%; border-radius: 0; cursor: pointer; }
.pv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 68px; border: 0; border-radius: 10px; background: rgba(0, 0, 0, .5); color: #fff; font-size: 36px; line-height: 1; cursor: pointer; z-index: 1; }
.pv-nav:hover, .pv-nav:focus-visible { background: rgba(0, 0, 0, .8); outline: 2px solid #fff; }
.pv-prev { left: 8px; } .pv-next { right: 8px; }
.pv-strip { display: flex; gap: 6px; overflow-x: auto; padding: 8px 2px 4px; }
.pv-strip button { flex: none; width: 76px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #111; cursor: pointer; opacity: .7; }
.pv-strip button.on, .pv-strip button:hover { opacity: 1; } .pv-strip button.on { border-color: var(--accent); }
dialog.pic-view .pv-strip img { width: 100%; height: 100%; max-height: none; object-fit: cover; border-radius: 0; margin: 0; }
.mp-inl { margin: 6px 0; }

/* Mail: the earlier emails under the text being written (they can be changed before sending) */
.mc-old { margin-top: 10px; }
.mc-old-frame { display: block; width: 100%; height: 340px; resize: vertical; border: 1px solid var(--border); border-radius: 8px; background: #fff; }

/* The small menu of a right click */
.ctx-menu { position: fixed; z-index: 2147483000; min-width: 190px; padding: 5px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .22); }
.ctx-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 6px; padding: 7px 12px; font: inherit; font-size: 13.5px; color: var(--text); cursor: pointer; white-space: nowrap; }
.ctx-menu button:hover, .ctx-menu button:focus-visible { background: var(--surface-2); outline: 0; }
.ctx-menu hr { border: 0; border-top: 1px solid var(--border); margin: 4px 2px; }

/* The number of unread emails in the left menu: beside Inbox, and beside Mail when its folders are folded */
.side-unread:empty { display: none; }
.side-unread { margin-left: auto; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--brand); color: #fff !important; font-size: 12px !important; font-weight: 700; text-align: center; line-height: 1.5; }
.side-mail.open .side-unread-top { display: none; }

/* Organise the menu: the user's own name for a page, and their colour for the page they are on */
.me-rename { border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 3px 6px; font: inherit; font-weight: 600; width: 190px; max-width: 42vw; }
.me-rename:hover { border-color: var(--border); } .me-rename:focus { border-color: var(--accent); background: var(--surface); outline: 0; }
.me-rename::placeholder { color: var(--text); opacity: 1; font-weight: 600; }
.me-color { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 12px; }
.me-color input[type=color] { width: 44px; height: 30px; padding: 0; border: 1px solid var(--border); border-radius: 6px; background: none; cursor: pointer; }
.me-color-demo { padding: 5px 12px; border-radius: 8px; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.side a.on { background: color-mix(in srgb, var(--side-on, var(--accent)) 14%, transparent); color: var(--side-on, var(--accent)); }

/* Receipts: the whole line opens the receipt */
tr.rc-row { cursor: pointer; }
tr.rc-row:hover td, tr.rc-row:focus-visible td { background: var(--surface-2); }
tr.rc-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
tr.rc-row td:first-child, tr.rc-row select { cursor: auto; }
.rc-by { align-self: center; font-weight: 600; }

/* Receipts: the search box */
.rc-filter #rcq { flex: 1 1 260px; max-width: 420px; }
.rc-found { margin: 4px 0 8px; }

/* Online apps: the switch of a service (off = no call is made to it) */
.apps-pop li { display: flex; align-items: center; gap: 8px; }
.apps-pop li .apps-api { margin-left: auto; flex: none; }
.pill.paused { background: #f59e0b22; color: #b45309; border-color: #f59e0b66; }
.pill-dot.paused { background: #f59e0b; }

/* Online apps: one tidy line per service (pill, name, switch); the description opens under it on a click on the name */
.apps-pop li { flex-wrap: wrap; gap: 4px 8px; }
.apps-pop .apps-nm { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; background: none; border: 0; padding: 2px 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.apps-pop .apps-nm .chev { color: var(--muted); font-size: 10px; transition: transform .15s; }
.apps-pop li.open .apps-nm .chev { transform: rotate(90deg); }
.apps-pop .apps-nm:hover { color: var(--accent); }
.apps-pop .nt { flex-basis: 100%; padding-left: 60px; }
.apps-pop .nt[hidden] { display: none; }
.apps-pop { width: 350px; }
.apps-pop .apps-nm { white-space: nowrap; overflow: hidden; }
.apps-pop .apps-nm > .chev { flex: none; }
.apps-pop li .pill { flex: none; }

/* Online apps: the first line switches every app at once */
.apps-all { display: flex; align-items: center; gap: 8px; padding: 4px 0 8px; margin-bottom: 4px; border-bottom: 2px solid var(--border); font-size: 13px; }
.apps-all .nm { flex: 1; } .apps-all .apps-api { flex: none; } .apps-all .pill { min-width: 52px; font-size: 11px; padding: 2px 6px; text-align: center; }

/* Reminders: the button that makes an appointment from a reminder looks like the other small buttons of the line */
.rm-acts .my-rcal { background: none; border: 0; cursor: pointer; padding: 4px 6px; border-radius: 6px; font: inherit; }
.rm-acts .my-rcal:hover, .rm-acts .my-rcal:focus-visible { background: var(--surface-2); }

/* Receipts by email */
.rc-maildlg { width: min(640px, 96vw); } .rc-maildlg textarea { width: 100%; font: inherit; margin-top: 4px; } .rc-maildlg #rmres { margin: 8px 0; }
.rc-mailpic iframe { background: #fff; }

/* Receipts: a column title orders the list */
.rc-th { background: none; border: 0; padding: 0; font: inherit; font-weight: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.rc-th:hover, .rc-th.on { color: var(--accent); } .rc-arrow { font-size: 9px; min-width: 9px; }

/* Receipts: the window of the authorised email addresses */
.rm-list { margin: 8px 0 12px; } .rm-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 0; }

/* The pill "Claude $" and its panel */
.spend-btn b { font-variant-numeric: tabular-nums; }
.spend-pop { width: 380px; }
.spend-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.spend-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.spend-tbl th { font-weight: 600; color: var(--text-2); font-size: 11.5px; padding: 3px 4px; border-bottom: 1px solid var(--border); }
.spend-tbl td { padding: 4px 4px; border-bottom: 1px dashed var(--border); }
.spend-tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.spend-tbl tr.tot td { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--border); }
.spend-days { display: flex; align-items: flex-end; gap: 6px; height: 54px; margin: 10px 0 2px; }
.spend-days span { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; }
.spend-days i { display: block; width: 100%; max-width: 26px; background: var(--brand); border-radius: 3px 3px 0 0; }
.spend-days em { font-style: normal; font-size: 10.5px; color: var(--muted); }
@media (max-width: 640px) { .spend-btn { padding: 5px 8px; font-size: 13px; } }

/* A small question that opens under the button that asked it (instead of the browser's own window) */
.ask-near { position: fixed; z-index: 2147483000; width: 270px; max-width: calc(100vw - 12px); padding: 12px 14px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .22); }
.ask-near b { display: block; font-size: 14.5px; }
.ask-near p { margin: 4px 0 0; }
.ask-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.ask-near .btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.ask-near .btn.danger:hover { filter: brightness(.92); }

/* Receipts: "Paid with" on light yellow when the card is not the one ending in 5015 */
td.rc-othercard { background: #fff6c2; color: #4a3b00; }
td.rc-othercard .rc-cardno { font-size: 12.5px; font-weight: 700; }

/* Commission reports: the lines about to be exported to the agents, laid out like the TIK widget */
.cr-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--brand-dark); color: #fff; padding: 12px 18px; border-radius: 10px 10px 0 0; }
.cr-head h1 { margin: 0; font-size: 19px; color: #fff; } .cr-kicker { font-size: 11px; opacity: .7; letter-spacing: .02em; }
.cr-bus { display: flex; gap: 6px; margin: 0 auto; }
.cr-bus button { border: 1px solid rgba(255,255,255,.45); background: transparent; color: #fff; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .03em; padding: 5px 16px; border-radius: 999px; cursor: pointer; }
.cr-bus button.on { background: #fff; color: var(--brand-dark); border-color: #fff; }
.cr-upd { font-size: 12px; opacity: .75; }
.cr-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: var(--surface); border: 1px solid var(--border); border-top: 0; border-bottom: 2px solid color-mix(in srgb, var(--brand) 75%, #fff); padding: 12px 18px; margin-bottom: 16px; }
.cr-f { display: flex; flex-direction: column; gap: 4px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--text-2); }
.cr-fbox { display: flex; } .cr-fbox input { width: 150px; border-radius: 0 6px 6px 0; border-left: 0; font-size: 13px; padding: 6px 8px; }
.cr-inc { border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); font: inherit; font-size: 10.5px; font-weight: 700; padding: 0 8px; border-radius: 6px 0 0 6px; cursor: pointer; min-width: 38px; }
.cr-inc.exc { background: #d93a3a; border-color: #d93a3a; color: #fff; }
.cr-reset { background: #d93a3a; border-color: #d93a3a; color: #fff; font-weight: 700; }
.cr-tiles { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.cr-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; min-width: 118px; }
.cr-tile span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); } .cr-tile b { font-size: 20px; font-variant-numeric: tabular-nums; }
.cr-tile.cr-green b { color: #1f8a3b; }
.cr-tools { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cr-agent { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 14px; background: var(--surface); }
.cr-ahead { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--brand-dark); color: #fff; border: 0; font: inherit; padding: 9px 16px; cursor: pointer; }
.cr-aname { flex: 1; display: flex; flex-direction: column; } .cr-aname b { font-size: 14.5px; } .cr-aname span { font-size: 11px; opacity: .75; }
.cr-atot { background: rgba(255,255,255,.16); border-radius: 999px; padding: 4px 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cr-chev { transition: transform .15s; } .cr-agent.shut .cr-chev { transform: rotate(-90deg); }
.cr-wrap { border: 0; border-radius: 0; }
.cr-table { width: 100%; font-size: 12.5px; } .cr-table th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .03em; }
.cr-table td, .cr-table th { padding: 7px 10px; white-space: nowrap; } .cr-table .cr-notes { white-space: normal; min-width: 160px; max-width: 320px; color: var(--text-2); }
.cr-n { color: var(--muted); font-size: 11px; } .cr-n a.cr-nlink { color: inherit; text-decoration: underline; } .cr-neg td { color: #c0392b; }
.cr-side { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px; background: var(--surface-2); color: var(--text-2); }
.cr-side.buy { background: #e3eefb; color: #1f5fa8; } .cr-side.sale { background: #e2f5e6; color: #1f7a38; }
.cr-table tfoot td { border-top: 2px solid var(--border); background: var(--surface-2); }

/* Commission reports: the whole page is shown smaller (asked by Yanick: "zoom is too big") */
.cr-page { zoom: .8; }
.cr-page .cr-table td, .cr-page .cr-table th { padding: 5px 10px; }

/* Commission reports: the general search box, and the list each search box proposes */
.cr-f { position: relative; } .cr-any .cr-fbox input { width: 270px; border-radius: 6px; border-left: 1px solid var(--border); }
.cr-sug { position: absolute; top: 100%; left: 0; z-index: 30; margin-top: 4px; min-width: 100%; width: max-content; max-width: 420px; max-height: 320px; overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .22); padding: 5px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.cr-sug button { display: block; width: 100%; text-align: left; background: none; border: 0; font: inherit; font-size: 13px; color: var(--text); padding: 6px 10px; border-radius: 6px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-sug button:hover, .cr-sug button.on { background: var(--surface-2); color: var(--accent); }
.cr-sugn { font-size: 11px; color: var(--muted); padding: 3px 10px 5px; }

/* Commission reports: several values per search box, shown under it; room for the magnifier; a readable Refresh */
.cr-filters { align-items: flex-start; } .cr-reset { margin-top: 17px; }
.cr-page .cr-fbox input { padding: 6px 8px 6px 34px; }
.cr-head .btn { background: #fff; border-color: #fff; color: var(--brand-dark); font-weight: 600; }
.cr-chips { display: flex; flex-wrap: wrap; gap: 4px; max-width: 200px; text-transform: none; letter-spacing: 0; }
.cr-chip { border: 1px solid #b9d3ee; background: #e3eefb; color: #1f5fa8; font: inherit; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; cursor: pointer; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-chip.exc { border-color: #efb4b4; background: #fde8e8; color: #b02a2a; text-decoration: line-through; }
.cr-chip:hover { filter: brightness(.95); }
.cr-sug button { display: flex; align-items: center; gap: 6px; } .cr-tick { width: 14px; flex: none; color: var(--accent); font-weight: 700; }
.cr-sug button.sel { background: color-mix(in srgb, var(--accent) 10%, transparent); font-weight: 600; }

/* Commission reports: "Send report" beside the agent's name; the files of an email being written */
.cr-ahead { padding: 0 10px 0 0; cursor: default; }
.cr-afold { display: flex; align-items: center; gap: 12px; background: none; border: 0; color: #fff; font: inherit; text-align: left; padding: 9px 16px; cursor: pointer; }
.cr-afold.cr-aend { flex: 1; justify-content: flex-end; padding-right: 6px; }
.cr-ahead .cr-aname { flex: none; }
.cr-send { background: #fff; color: var(--brand-dark); border: 0; border-radius: 999px; font: inherit; font-size: 12.5px; font-weight: 700; padding: 5px 14px; cursor: pointer; white-space: nowrap; }
.cr-send:hover { background: #e3eefb; } .cr-send:disabled { opacity: .7; cursor: progress; }
.cr-view { color: #fff; opacity: .8; font-size: 12px; white-space: nowrap; } .cr-view:hover { opacity: 1; }
.mc-files { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
.mc-file { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface-2); border-radius: 8px; padding: 5px 10px; font-size: 12.5px; color: var(--text); text-decoration: none; }
.mc-file:hover { border-color: var(--accent); }
.mc-warn { background: #fff6c2; color: #4a3b00; border-radius: 8px; padding: 8px 12px; font-size: 13px; margin: 8px 0; }

/* The small window of the hub for every question and message: the detail keeps its lines; a plain "yes" is not red */
.ask-near { width: 300px; } .ask-near p { white-space: pre-line; overflow-wrap: anywhere; max-height: 40vh; overflow: auto; }

/* Commission forecast: the agent whose worksheets are shown is orange; the bar of the panel under it is light orange (not black) */
.cm-tree tr.cm-a.cm-on > td { background: #f28c28; color: #fff; font-weight: 700; }
.cm-tree tr.cm-a.cm-on .cm-agent, .cm-tree tr.cm-a.cm-on .cm-agent:hover { color: #fff; }
.cm-tree tr.cm-panel > td { border-bottom: 2px solid #f28c28; }
.cm-phead, .cm-phead[data-close]:hover { background: #fde3c8; color: #5a3200; }
.cm-phead[data-close]:hover { background: #fbd5ad; }
.cm-count { background: #f28c28; color: #fff; }
.cm-close { color: #5a3200; border-color: #e0a36a; } .cm-close:hover, .cm-close:focus-visible { background: #fbd5ad; }

/* The email window with only the email being written (a commission report to check and send) */
dialog.mail-only { width: min(860px, 94vw); }
dialog.mail-only .mm-bar > :not(h2):not(#mmx):not([style]), dialog.mail-only .mm-list, dialog.mail-only .mm-more, dialog.mail-only .mm-empty { display: none; }
dialog.mail-only .mm-compose { border: 0; box-shadow: none; margin: 0; }
dialog.mail-only .mm-compose textarea { min-height: 220px; }

/* Commission reports: on the right of an agent's bar, in this order: View file, Send report, the total */
.cr-ahead > .cr-afold:first-child { flex: 1; }
.cr-afold.cr-aend { flex: none; padding-left: 4px; }
.cr-ahead { gap: 12px; }

/* The exchange rate of an email whose amount is converted */
.mc-fx { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 8px 0; font-size: 13px; } .mc-fx > span:first-child { font-weight: 600; }
.mc-fx input { width: 84px; padding: 4px 8px; font-variant-numeric: tabular-nums; }

/* Commission reports: the pill MISC (other reports) beside the business units */
.cr-misc { border: 1px solid rgba(255,255,255,.45); background: transparent; color: #fff; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .03em; padding: 5px 16px; border-radius: 999px; cursor: pointer; }
.cr-misc:hover { background: rgba(255,255,255,.14); } .cr-misc:disabled { opacity: .7; cursor: progress; }
.cr-bus { margin: 0 0 0 auto; } .cr-misc { margin-right: auto; }

/* Commission reports: the two views (Not processed / Paid) under the header, and the month of the Paid view */
.cr-views { display: flex; align-items: center; gap: 4px; background: #142c47; padding: 0 18px; }
.cr-views button { background: none; border: 0; border-bottom: 3px solid transparent; color: rgba(255,255,255,.65); font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 10px 16px 8px; cursor: pointer; }
.cr-views button.on { color: #fff; border-bottom-color: #fff; } .cr-views button:hover { color: #fff; }
.cr-month { margin-left: auto; display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.8); font-size: 12px; } .cr-month select { padding: 4px 8px; font-size: 13px; }
.cr-head { border-radius: 10px 10px 0 0; } .cr-send[hidden], .cr-misc[hidden] { display: none; }

/* Commission reports: the box to tick on each line, and the pill Options on the left of an agent's bar */
.cr-ahead { padding-left: 10px; }
.cr-opt { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; font: inherit; font-size: 12px; font-weight: 700; padding: 4px 12px; cursor: pointer; white-space: nowrap; }
.cr-opt:hover { background: rgba(255,255,255,.26); }
.cr-ahead > .cr-afold:first-child, .cr-ahead > .cr-opt + .cr-afold { flex: 1; } .cr-ahead > .cr-opt + .cr-afold { padding-left: 6px; }
.cr-table .cr-pk { width: 30px; padding-right: 0; } .cr-table .cr-pk input { width: 16px; height: 16px; cursor: pointer; }
.cr-table tr.cr-picked td { background: #fff6dd; }

/* Commission reports: the list of the commission date (Paid view) is readable: dark text on white */
.cr-month select { background: #fff; color: var(--brand-dark); border: 1px solid #fff; border-radius: 6px; font-weight: 600; min-width: 150px; }
.cr-month select option { color: var(--brand-dark); background: #fff; }

/* Commission reports, Paid view: one section per month (most recent first), the agents inside */
.cr-msec { margin-bottom: 14px; }
.cr-mhead { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #f28c28; color: #fff; border: 0; border-radius: 8px; font: inherit; padding: 9px 16px; cursor: pointer; }
.cr-mhead b { font-size: 15px; } .cr-msub { flex: 1; font-size: 12px; opacity: .9; } .cr-mtot { background: rgba(255,255,255,.22); border-radius: 999px; padding: 4px 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cr-msec.shut .cr-chev { transform: rotate(-90deg); }
.cr-mbody { padding: 10px 0 0 18px; border-left: 3px solid #f6c18f; margin-left: 8px; } .cr-mbody .cr-agent { margin-bottom: 10px; }
/* Mail: one email alone in its own window (double-click, or "Open in a window"), Outlook classic look; and the line of the email put aside */
.olwin { --olb: #0072c6; --olbd: #005a9e; position: fixed; inset: 0; display: flex; flex-direction: column; background: #fff; color: #201f1e; font-family: "Segoe UI", system-ui, Arial, sans-serif; font-size: 13px; }
.olwin .ol-ribbon { border-top: 4px solid var(--olb); }
.olwin .muted { color: #605e5c; } .olwin .error { color: #a4262c; }
.olwin a.ol-file { color: inherit; text-decoration: none; } .olwin a.ol-file:hover { background: #c7e0f4; border-color: #92c0e0; }
.mp-draft { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 2px; padding: 6px 10px; background: #fff4ce; color: #3b3a39; border: 1px solid #f2c811; border-radius: 8px; }
.mp-draft-what { flex: 1 1 200px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Mail page like Outlook classic: a ribbon on top (in place of the title bar and the two bars of buttons), Outlook colours in the list and the reading pane */
.mp { --olb: #0072c6; --olbd: #005a9e; display: flex; flex-direction: column; height: calc(100vh - 222px); min-height: 480px; font-family: "Segoe UI", system-ui, Arial, sans-serif; }
.mp-ribbon { flex: none; flex-wrap: wrap; border: 1px solid #d2d0ce; border-top: 4px solid var(--olb); border-radius: 4px 4px 0 0; }
.mp-ribbon .ol-group { flex-wrap: nowrap; padding: 0 6px 18px 4px; } .mp-ribbon .ol-rb { min-width: 52px; padding: 5px 5px 4px; }
.mp-ribbon a.ol-rb { text-decoration: none; }
.mp-ribbon .mp-new { min-width: 76px; } .mp-ribbon .mp-new span { font-weight: 600; }
.mp-ribbon .mp-find { flex: 1 1 170px; flex-direction: row; flex-wrap: wrap; align-items: center; align-content: center; gap: 4px 12px; padding: 4px 6px 4px 12px; border-right: 0; min-width: 170px; }
.mp-find-l { flex: 1 1 230px; display: flex; gap: 6px; align-items: center; justify-content: flex-end; } .mp-find-l.mp-acct { flex: 0 1 auto; margin-left: auto; }
.mp-find input[type=search] { flex: 1 1 160px; min-width: 0; max-width: 520px; font: inherit; font-size: 13px; padding: 4px 8px; border: 1px solid #c8c6c4; border-radius: 2px; background: #fff; color: #201f1e; }
.mp-find input[type=search]:focus-visible { outline: 0; border-color: var(--olb); box-shadow: inset 0 -1px 0 var(--olb); }
.mp-find select { font: inherit; font-size: 12px; padding: 3px 4px; border: 1px solid #c8c6c4; border-radius: 2px; background: #fff; color: #201f1e; }
.mp-acct { font-size: 12px; color: #605e5c; } .mp-acct a { color: var(--olb); text-decoration: none; } .mp-acct a:hover { text-decoration: underline; }
.mp > .error, .mp > .mp-note, .mp > .mp-draft { flex: none; }
.mp .mp-grid { flex: 1 1 auto; height: auto; min-height: 0; border-radius: 0 0 4px 4px; }
.mp-tabs button.on { border-bottom-color: var(--olb); } .mp-fname { color: var(--olb); }
.mp-item.unread { border-left-color: var(--olb); } .mp-item.unread .mp-subj, .mp-item.unread .mp-time { color: var(--olb); }
.mp-item.sel { background: #cde6f7; color: #201f1e; } .mp-item.sel .mp-prev, .mp-item.sel .mp-time { color: #605e5c; }
.mp-item:hover { background: rgba(0,114,198,.08); } .mp-item.sel:hover { background: #cde6f7; }
.mp-read .mp-subject { margin-top: 12px; font-weight: 400; font-size: 20px; }
.mp-read .mp-meta { padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.mp-read .mp-frame { border-radius: 0; border: 0; }
@media (max-width: 1000px) { .mp { height: auto; } .mp .mp-grid { height: auto; } }
/* Carl on demand (hub rule): a pill in the top bar shows or hides his box on every page; hidden, it takes no room */
.my-carl.folded { display: none !important; }
.carl-btn svg, .carl-btn img { width: 15px; height: 15px; }
.carl-btn.on { background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: var(--accent); font-weight: 600; }
.carl-top.folded + iframe.timeline { height: calc(100vh - 110px); }
.mp { height: calc(100vh - 94px); }
main:has(.carl-top:not(.folded)) .mp { height: calc(100vh - 222px); }
@media (max-width: 1000px) { .mp, main:has(.carl-top:not(.folded)) .mp { height: auto; } }
/* Bookings page: filters on top, one line per booking in a frame that scrolls both ways (bar always in sight), details under a line */
.bk-q { flex: 0 1 360px; min-width: 180px; }
.bk-top { margin-bottom: 4px; } .bk-top .filters { align-items: center; margin-bottom: 6px; }
.bk-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); margin-right: 4px; }
.bk-chip b { font-variant-numeric: tabular-nums; } .bk-chip.hot b { color: #c2410c; } .bk-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; } .bk-chip.on b { color: #fff; }
.bk-count { margin: 2px 2px 8px; }
.bk-wrap { max-height: calc(100vh - 250px); min-height: 260px; overflow: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
main:has(.carl-top:not(.folded)) .bk-wrap { max-height: calc(100vh - 380px); }
.bk-table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
.bk-table > thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); text-align: left; padding: 7px 10px; font-size: 12px; white-space: nowrap; border-bottom: 1px solid var(--border); }
.bk-table > tbody > tr > td { padding: 6px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; vertical-align: top; }
.bk-row { cursor: pointer; } .bk-row:hover, .bk-row:focus-visible { background: rgba(15,108,189,.07); outline: 0; } .bk-row.open { background: rgba(15,108,189,.11); }
.bk-num { font-weight: 700; } .bk-ws { white-space: normal !important; min-width: 120px; } .bk-ne { color: #c2410c; font-weight: 700; margin-left: 1px; }
.bk-st { display: inline-block; border-radius: 999px; padding: 1px 9px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.bk-st.ok { background: #dcfce7; color: #166534; } .bk-st.tv { background: #fef3c7; color: #92400e; } .bk-st.ro { background: #ffedd5; color: #9a3412; } .bk-st.ca { background: #fee2e2; color: #991b1b; text-decoration: line-through; } .bk-st.none { background: var(--surface-2); color: var(--text-2); font-weight: 400; }
.bk-soon { color: #c2410c; }
.bk-flag { display: inline-block; border-radius: 6px; padding: 1px 7px; font-size: 12px; background: #ffedd5; color: #9a3412; } .bk-flag.hot { background: #fee2e2; color: #991b1b; font-weight: 600; } .bk-flag.soft { background: var(--surface-2); color: var(--text-2); }
.bk-more > td { white-space: normal !important; background: var(--surface-2); padding: 10px 14px 12px 22px !important; }
.bk-det { display: grid; gap: 4px; margin-bottom: 8px; max-width: 1100px; }
.bk-wst { border-collapse: collapse; font-size: 12.5px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; } .bk-wst th, .bk-wst td { padding: 4px 10px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; } .bk-wst th { font-size: 11.5px; color: var(--text-2); }
.bk-carl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 2px 8px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font-size: 13px; } .bk-carl svg, .bk-carl img { width: 15px; height: 15px; }
.bk-notin { margin: 2px 2px 10px; padding: 8px 12px; border: 1px solid #fca5a5; background: #fef2f2; color: #7f1d1d; border-radius: 8px; font-size: 13px; display: grid; gap: 3px; } .bk-notin .muted { color: #991b1b; opacity: .8; } .bk-note { white-space: pre-wrap; }
.bk-hist { padding-left: 12px; font-size: 12.5px; }
.mp-ribbon .mp-carl svg, .mp-ribbon .mp-carl img { width: 22px; height: 22px; } .mp-ribbon .mp-carl span { font-weight: 600; }
.mp-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; } .mp-carl2 { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; } .mp-carl2 img, .mp-carl2 svg { width: 16px; height: 16px; }
.mp-side { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; align-items: center; max-width: 320px; } .mp-side .mp-when { flex-basis: 100%; text-align: right; } .mp-unsub2 { color: #a4262c; border-color: #e7b3b6; font-weight: 600; }
.cs-l { display: block; margin: 12px 0 4px; } #csrules, #cscard { width: 100%; font: inherit; font-size: 13px; line-height: 1.45; } .mp-carlset { padding: 3px 7px; }
/* Commission reports: BU and Status as two drop-down menus side by side in the head; the two parts of the status "All" */
.cr-sels { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-left: auto; } .cr-sels > span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cr-sels .cr-month { margin: 0; font-weight: 600; } .cr-sels select { font-weight: 600; }
.cr-part { margin: 18px 0 8px; font-size: 16px; display: flex; align-items: baseline; gap: 10px; border-bottom: 2px solid var(--border); padding-bottom: 4px; } .cr-part span { font-size: 12.5px; font-weight: 400; color: var(--text-2); } .cr-none { margin: 4px 2px 10px; }

/* Admin 2: Invoiced in TIK, paid in QuickBooks? */
.a2-card { padding: 16px 18px; } .a2-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; } .a2-head h2 { margin: 0 0 4px; }
.a2-run { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.a2-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
.a2-kind { display: flex; flex-direction: column; align-items: flex-start; min-width: 120px; padding: 8px 12px; border: 1px solid var(--border); border-left: 4px solid #9aa5b1; border-radius: 8px; background: var(--surface); font: inherit; cursor: pointer; text-align: left; }
.a2-kind b { font-size: 20px; font-variant-numeric: tabular-nums; } .a2-kind span { font-size: 12px; color: var(--text-2); }
.a2-kind.good { border-left-color: #1f8a3b; } .a2-kind.warn { border-left-color: #e0a100; } .a2-kind.bad { border-left-color: #c0392b; }
.a2-kind.on { background: #e8f0fb; border-color: var(--brand-dark); } .a2-kind:disabled { opacity: .45; cursor: default; }
.a2-tools { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.a2-tbl { width: 100%; font-size: 13px; } .a2-tbl td, .a2-tbl th { white-space: nowrap; } .a2-tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.a2-note { color: #b02a2a; white-space: normal !important; min-width: 180px; }
.a2-x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 13px; padding: 0 4px; } .a2-x:hover { color: #c0392b; }
.a2-tbl tr.a2-out td { opacity: .4; text-decoration: line-through; } .a2-tbl tr.a2-out td:first-child { opacity: 1; text-decoration: none; }

/* Rate finder */
.rf-form { padding: 14px 16px; } .rf-kinds { display: flex; gap: 6px; margin-bottom: 12px; }
.rf-kind { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 6px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.rf-kind.on { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.rf-ends { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.rf-f { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--text-2); flex: 1 1 240px; }
.rf-f input, .rf-f select { font-size: 14px; text-transform: none; letter-spacing: 0; font-weight: 400; } .rf-f.rf-small { flex: 0 1 150px; }
.rf-swap { align-self: flex-end; padding: 7px 10px; } .rf-go { align-self: flex-end; } .rf-help { margin: 10px 0 0; }
.rf-top { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; } .rf-top > .card { margin: 0; }
.rf-est { flex: 0 1 340px; padding: 14px 18px; border-left: 5px solid #1f8a3b; } .rf-tr { flex: 1 1 420px; padding: 14px 18px; }
.rf-est-l { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.rf-est-v { font-size: 34px; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.1; margin-top: 4px; } .rf-est-v small { font-size: 15px; font-weight: 600; color: var(--text-2); }
.rf-est-c { font-size: 15px; color: var(--text-2); margin-bottom: 8px; font-variant-numeric: tabular-nums; } .rf-est-r { margin-bottom: 6px; }
.rf-warn { margin-top: 8px; font-size: 12px; font-weight: 600; color: #8a5a00; }
.rf-trend { width: 100%; max-width: 720px; height: auto; margin-top: 6px; } .rf-bar { fill: color-mix(in srgb, var(--brand) 75%, #fff); } .rf-bar:hover { fill: var(--brand-dark); }
.rf-val { font-size: 11px; fill: var(--text-2); font-variant-numeric: tabular-nums; } .rf-mon { font-size: 11px; fill: var(--muted); } .rf-axis { stroke: var(--border); }
.rf-tbl { width: 100%; font-size: 13px; } .rf-tbl td, .rf-tbl th { vertical-align: top; } .rf-tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rf-lane { white-space: nowrap; } .rf-notes { color: var(--text-2); font-size: 12px; max-width: 320px; }
.rf-pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); } .rf-pill.on { background: #e2f5e6; color: #1f7a38; }
.rf-none { padding: 16px 18px; border-left: 5px solid #c0392b; }

/* Rate finder: close names for a place that is not in the data; the chart's currency */
.rf-pill.rf-newer { background: #fdecd6; color: #a0520a; } .rf-unloc { margin: 0 0 10px; font-size: 12px; color: var(--muted); } .rf-unloc summary { cursor: pointer; } .rf-unloc .tbl-wrap { margin-top: 6px; max-height: 320px; }
.rf-near { background: #fff6c2; color: #4a3b00; border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rf-chip { border: 1px solid #e0c060; background: #fff; color: var(--brand-dark); border-radius: 999px; padding: 3px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; } .rf-chip:hover { background: var(--brand-dark); color: #fff; }
.rf-tr-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rf-cur { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; } .rf-cur button { border: 0; background: var(--surface); font: inherit; font-size: 12px; font-weight: 700; padding: 3px 12px; cursor: pointer; } .rf-cur button.on { background: var(--brand-dark); color: #fff; }

/* Rate finder: the type of each line */
.rf-type { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.rf-type.rf-domestic { background: #e2f5e6; color: #1f7a38; } .rf-type.rf-drayage { background: #fdecd6; color: #a0520a; } .rf-type.rf-ocean { background: #e3eefb; color: #1f5fa8; }

/* Rate finder: lanes of other places of the same state, shown apart (not the lane asked) */
.rf-others { opacity: .85; border-left: 5px solid #9aa5b1; } .rf-others h2 { color: var(--text-2); }
.rf-others summary { cursor: pointer; padding: 4px 0; color: var(--text-2); } .rf-others[open] summary { margin-bottom: 8px; }

/* Rate finder: the distance from the place typed */
.rf-km { display: inline-block; font-size: 11px; font-weight: 700; color: #a0520a; background: #fdecd6; border-radius: 4px; padding: 0 5px; margin-left: 4px; }
.rf-credit { color: var(--muted); font-size: 11px; margin-left: 4px; }

/* Rate finder: proposals while typing (system in black, map in blue), the box's colour, what was understood */
.rf-sug { position: absolute; top: 100%; left: 0; right: 0; z-index: 40; margin-top: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.2); padding: 5px; max-height: 360px; overflow: auto; text-transform: none; letter-spacing: 0; font-weight: 400; }
.rf-sug-h { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 5px 8px 3px; } .rf-sug-hm { color: #1f5fa8; }
.rf-sug button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; background: none; font: inherit; font-size: 13.5px; padding: 6px 8px; border-radius: 6px; cursor: pointer; color: var(--text); }
.rf-sug button.rf-sug-map { color: #1f5fa8; font-style: italic; }
.rf-sug button:hover, .rf-sug button.on { background: var(--surface-2); } .rf-sug-k { width: 18px; flex: none; text-align: center; font-style: normal; }
.rf-f input.rf-sys { border-color: #1f8a3b; box-shadow: 0 0 0 2px rgba(31,138,59,.15); color: #14602a; }
.rf-f input.rf-map { border-color: #1f5fa8; box-shadow: 0 0 0 2px rgba(31,95,168,.15); color: #1f5fa8; font-style: italic; }
.rf-und { font-size: 11.5px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); min-height: 14px; }
.rf-und-company, .rf-und-place { color: #14602a; } .rf-und-name { color: #8a5a00; }

/* Rate finder: the currency in the head of the page; the cheapest rate in big, the average beside */
.rf-cur-top { margin-right: 6px; } .rf-cur-top button { padding: 5px 14px; font-size: 13px; }
.rf-est { flex: 0 1 420px; } .rf-est-two { display: flex; align-items: flex-start; gap: 22px; margin: 4px 0 8px; }
.rf-est-s { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #1f8a3b; } .rf-est-avg .rf-est-s { color: var(--muted); }
.rf-est-avg { padding-left: 18px; border-left: 1px solid var(--border); } .rf-est-v2 { font-size: 24px; font-weight: 650; font-variant-numeric: tabular-nums; margin-top: 8px; } .rf-est-v2 small { font-size: 13px; color: var(--text-2); }

/* Rate finder: unusual prices, widening the distance */
.rf-odd { margin-top: 6px; font-size: 12px; color: #8a5a00; } .rf-oddpill { font-size: 10px; font-weight: 700; color: #a0520a; background: #fdecd6; border-radius: 4px; padding: 0 5px; }
.rf-widen { margin-top: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; }

/* Rate finder: a cheapest rate older than 2 months, in red with its date */
.rf-old .rf-est-s, .rf-old .rf-est-v, .rf-old .rf-est-v small { color: #c0392b; } .rf-old-d { font-size: 12.5px; font-weight: 700; color: #c0392b; }

/* Rate finder: prices projected to today with the diesel price, in orange */
.rf-proj { margin: 4px 0 8px; padding: 6px 10px; border-radius: 8px; background: #fdecd6; color: #a0520a; font-size: 13px; }
.rf-proj-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-right: 6px; } .rf-proj-n { font-size: 11px; opacity: .85; margin-top: 2px; }
.rf-proj-l { font-size: 11px; color: #c4620b; font-weight: 600; white-space: nowrap; }
.rf-diesel { fill: none; stroke: #f28c28; stroke-width: 2; } .rf-diesel-p { fill: #f28c28; } .rf-diesel-t { font-size: 11px; fill: #c4620b; }

/* Rate finder chart: every month, the projected "Today" bar, the diesel line, a legend */
.rf-bar-proj { fill: #f28c28; } .rf-val-proj { fill: #c4620b; font-weight: 700; } .rf-mon-on { fill: var(--text-2); font-weight: 600; } .rf-mon-proj { fill: #c4620b; font-weight: 700; }
.rf-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11.5px; color: var(--text-2); margin-top: 2px; }
.rf-legend i { display: inline-block; width: 12px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.rf-lg-bar { background: color-mix(in srgb, var(--brand) 75%, #fff); } .rf-lg-proj { background: #f28c28; } .rf-lg-diesel { height: 2px !important; background: #f28c28; vertical-align: 3px !important; }
.rf-det { margin: 4px 0 2px; } .rf-det summary { cursor: pointer; font-size: 12px; color: var(--muted); } .rf-det[open] summary { margin-bottom: 4px; }

/* Rate finder: the distance of a port proposed for a drayage */
.rf-sug-km { margin-left: auto; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Rate finder chart: the year under the first month and each January */
.rf-year { font-size: 10.5px; font-weight: 700; fill: var(--text-2); }

/* Rate finder: cheapest, average and highest side by side, wrapping on a narrow screen */
.rf-est-two { flex-wrap: wrap; gap: 16px; } .rf-est { flex-basis: 480px; }

/* Uploads page */
.up-card h2 { margin-bottom: 2px; } .up-cur { margin: 10px 0; } .up-drop { padding: 22px 16px; margin: 10px 0 6px; }
.up-ok { color: #1f8a3b; font-weight: 600; } .up-old summary { cursor: pointer; color: var(--text-2); font-size: 13px; } .up-old ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }

/* Rate finder: how often a proposed port was used; the most used in green */
.rf-sug-use { margin-left: 8px; padding: 0 6px; border-radius: 9px; font-size: 11px; background: #e3f4e8; color: #1f8a3b; white-space: nowrap; }
.rf-sug-top { color: #1f8a3b; font-weight: 700; } .rf-sug-top .rf-sug-use { background: #1f8a3b; color: #fff; }

/* Rate finder: a column of the chart opens the worksheets of that month */
.rf-bar-g { cursor: pointer; } .rf-bar-g:hover rect { filter: brightness(0.88); }
dialog.rf-wsdlg { width: min(980px, 96vw); max-height: 86vh; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); overflow: auto; }
dialog.rf-wsdlg::backdrop { background: rgba(0, 0, 0, .35); } dialog.rf-wsdlg .lb-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }

/* Rate finder: a line of "What we paid" opens its details */
.rf-row { cursor: pointer; } .rf-row:hover td { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.rf-det-t { border-collapse: collapse; margin: 4px 0 10px; font-size: 13.5px; } .rf-det-t th { text-align: left; color: var(--muted); font-weight: 600; padding: 4px 14px 4px 0; vertical-align: top; white-space: nowrap; } .rf-det-t td { padding: 4px 0; }
.rf-det-h { font-size: 13px; margin: 6px 0; color: var(--text-2); }

/* Uploads: the rates read in a version of the file */
dialog.up-view { width: min(1400px, 97vw); } .up-filt { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; } .up-filt input { flex: 1 1 240px; } .up-view .rf-tbl td, .up-view .rf-tbl th { white-space: nowrap; }

/* Rate finder: the incoterms (Ocean) */
.rf-incol { white-space: nowrap; margin-top: 2px; } .rf-incon { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }

/* Uploads: choose what to upload, then the files uploaded */
.up-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; } .up-pickl { font-weight: 600; margin-right: 4px; }
.up-h { font-size: 14px; margin: 14px 0 6px; } .up-oldrow td { color: var(--text-2); } .up-tbl td { vertical-align: top; }

/* Rate finder: incoterm boxes with several choices */
.rf-ms { position: relative; } .rf-ms-b { min-width: 110px; text-align: left; padding: 6px 26px 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); cursor: pointer; position: relative; font: inherit; }
.rf-ms-b::after { content: '▾'; position: absolute; right: 9px; color: var(--muted); }
.rf-ms-p { position: absolute; top: 100%; left: 0; z-index: 30; margin-top: 4px; padding: 6px; min-width: 150px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.12); display: flex; flex-direction: column; gap: 2px; }
.rf-ms-p[hidden] { display: none; } .rf-ms-p label { display: flex; gap: 8px; align-items: center; padding: 4px 6px; border-radius: 6px; cursor: pointer; font-size: 13px; } .rf-ms-p label:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.rf-ms-any { margin-top: 4px; border: 0; background: none; color: var(--accent); cursor: pointer; text-align: left; padding: 4px 6px; font: inherit; font-size: 13px; }

/* Rate finder: the cost by the mile */
.rf-mile { margin: 4px 0 8px; padding: 6px 10px; border-radius: 8px; background: color-mix(in srgb, color-mix(in srgb, var(--brand) 75%, #fff) 12%, var(--surface)); color: var(--text); font-size: 13px; }
.rf-mile .rf-proj-h { color: #2a6fae; }

/* Rate finder: the rough estimate by the mile (nothing on the lane) */
.rf-mile-det { margin-top: 4px; } .rf-mile-det summary { cursor: pointer; font-size: 12px; color: #2a6fae; } .rf-mile-det .tbl-wrap { max-height: 320px; margin-top: 4px; } .rf-mile-left td { opacity: .55; } .rf-mile-this { font-size: 11px; padding: 0 5px; border-radius: 6px; background: color-mix(in srgb, #2a6fae 15%, var(--surface)); color: #2a6fae; }
.rf-mile-gen { background: color-mix(in srgb, #f2b928 14%, var(--surface)); } .rf-mile-gen .rf-proj-h { color: #9a6b00; } .rf-none .rf-mile { margin-bottom: 10px; }

/* Rate finder: the market check (US truckload price index) */
.rf-mkt { margin: 4px 0 8px; padding: 6px 10px; border-radius: 8px; background: color-mix(in srgb, var(--muted) 12%, var(--surface)); font-size: 13px; } .rf-mkt .rf-proj-h { color: var(--text-2); }

/* Rate finder: DAT's market rates (typed weekly) */
.rf-dat { margin: 4px 0 8px; padding: 6px 10px; border-radius: 8px; background: color-mix(in srgb, #7a5cc7 10%, var(--surface)); font-size: 13px; } .rf-dat .rf-proj-h { color: #5b3fa8; }
.rf-datf { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; } .rf-datf label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--text-2); } .rf-datf input { width: 110px; }
dialog.rf-datdlg { width: min(560px, 96vw); }

/* month-end Visa (Receipts) */
.rcv-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; margin-bottom: 10px; }
.rcv-step h3 { margin: 0 0 4px; font-size: 15px; } .rcv-step .bar { margin-top: 6px; }
.rcv-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.rcv-pill { padding: 3px 10px; border-radius: 999px; background: var(--surface-2, rgba(127,127,127,.12)); font-size: 13px; }
.rcv-pill.ok { background: rgba(40, 160, 80, .15); color: #1e7a3c; } .rcv-pill.bad { background: rgba(210, 50, 50, .15); color: #b02a2a; font-weight: 600; } .rcv-pill.warn { background: rgba(230, 160, 20, .18); color: #8a5a00; }
.rcv-why { font-size: 12px; color: #8a5a00; } .rcv-all { margin-top: 10px; } .rcv-all summary { cursor: pointer; font-weight: 600; }
@media (prefers-color-scheme: dark) { .rcv-pill.ok { color: #6fd08f; } .rcv-pill.bad { color: #ff8a8a; } .rcv-pill.warn, .rcv-why { color: #f0c060; } }

/* Power Tools in the left menu: the pages under a tools page (Receipts under Admin tools…), folded under its arrow */
.side-tool-sub a { padding-left: 30px; justify-content: flex-start; font-size: inherit; }

/* Organise the menu: a page under a tools page, indented as in the menu */
.me-item.me-sub { margin-left: 30px; }
.me-item.me-sub::before { content: '↳'; color: var(--muted); margin-right: -2px; }

/* Admin → Roles: every line with No access / View only / Edit (like Zoho Creator's permissions) */
dialog.rl-dlg { width: min(1300px, 96vw); max-width: none; max-height: 94vh; overflow: auto; }
.adm-edit { margin-top: 14px; border: 2px solid var(--accent); scroll-margin-top: 70px; }
.adm-edit .lb-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; } .adm-edit .lb-bar h2 { margin: 0; }
.adm-edit .form { max-width: 900px; } .adm-edit.rl-dlg .form { max-width: none; } .adm-edit .rl-wrap { max-height: none; overflow: visible; }
tr.adm-cur td { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.rl-wrap { max-height: 66vh; overflow: auto; margin: 8px 0; }
.rl-tbl { width: 100%; border-collapse: collapse; }
.rl-tbl td, .rl-tbl th { padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; text-align: left; }
.rl-g th { background: var(--surface-2, rgba(127,127,127,.1)); position: sticky; top: 0; z-index: 1; font-size: 13px; }
.rl-ch { white-space: nowrap; text-align: right !important; }
.rl-o { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; margin-left: 4px; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; font-size: 13px; }
.rl-o input { margin: 0; }
.rl-o.on.rl-none { background: rgba(127,127,127,.15); }
.rl-o.on.rl-view { background: rgba(40, 120, 220, .15); border-color: rgba(40, 120, 220, .5); }
.rl-o.on.rl-edit { background: rgba(40, 160, 80, .15); border-color: rgba(40, 160, 80, .5); }
.rl-n { font-size: 12.5px; padding: 1px 8px; border-radius: 999px; } .rl-n.e { background: rgba(40, 160, 80, .15); } .rl-n.v { background: rgba(40, 120, 220, .15); }
.rl-tbl td:first-child { width: auto; } .rl-tbl { table-layout: auto; }
dialog.rl-dlg .form { max-width: none; }
@media (max-width: 760px) { .rl-ch { white-space: normal; } .rl-o { margin: 2px; } }
dialog.rl-dlg .lb-bar { display: flex; align-items: center; gap: 8px; } dialog.rl-dlg .lb-bar h2 { margin: 0; }

/* the roles as a tree (like the left menu) */
.rl-tbl button.rl-o { background: transparent; color: var(--text); font: inherit; font-size: 13px; }
.rl-tbl button.rl-o:hover { background: rgba(127,127,127,.1); }
.rl-fold { background: none; border: 0; color: var(--muted); cursor: pointer; width: 20px; padding: 0; font-size: 13px; }
.rl-fold-sp { display: inline-block; width: 20px; }
.rl-hint { margin-left: 20px; }
.rl-sum { font-size: 11.5px; padding: 1px 8px; border-radius: 999px; margin-left: 6px; font-weight: 600; }
.rl-sum.all { background: rgba(40, 160, 80, .15); color: #1e7a3c; } .rl-sum.some { background: rgba(230, 160, 20, .18); color: #8a5a00; } .rl-sum.none { background: rgba(127,127,127,.15); color: var(--muted); }
.rl-g td { background: var(--surface-2, rgba(127,127,127,.1)); font-size: 14px; text-transform: uppercase; letter-spacing: .02em; }
@media (prefers-color-scheme: dark) { .rl-sum.all { color: #6fd08f; } .rl-sum.some { color: #f0c060; } }

.rl-bk td { background: color-mix(in srgb, var(--rl-sec, var(--accent)) 22%, transparent); font-size: 15px; font-weight: 700; border-top: 2px solid var(--rl-sec, var(--accent)); }
.rl-bk.rl-sub td { background: color-mix(in srgb, var(--rl-subc, var(--accent)) 14%, transparent); font-size: 14px; border-top: 1px solid var(--rl-subc, var(--accent)); }
.rl-arr .me-sec > .me-head { background: color-mix(in srgb, var(--rl-sec, var(--accent)) 22%, transparent); }
.rl-arr .me-sec .me-sec { margin: 6px 10px 10px 28px; }
.rl-arr .me-head select { max-width: 200px; }
.rl-kind { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; margin-left: 4px; vertical-align: 1px; white-space: nowrap; text-transform: none; letter-spacing: 0; }
.rl-k-own { background: #d8f3e0; color: #17643a; } .rl-k-seen { background: #dbe8fb; color: #1d4f9c; } .rl-k-all { background: #fde7cf; color: #8a4b08; } .rl-k-set { background: #ece0fb; color: #5b2d9a; }
.rl-legend { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; } .rl-legend .rl-kind { font-size: 12px; padding: 2px 10px; }
.rl-k-page { background: transparent; color: var(--text); border: 1px solid var(--border); }
@media (prefers-color-scheme: dark) { .rl-k-own { background: #1d4a30; color: #a6e8bd; } .rl-k-seen { background: #1f3b63; color: #b5d0f7; } .rl-k-all { background: #5a3812; color: #f6cd9b; } .rl-k-set { background: #3d2763; color: #d8c2f6; } }
.rl-pp { font: inherit; font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; padding: 2px 10px; margin-left: 6px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface, transparent); color: var(--text); cursor: pointer; }
.rl-pp:hover { border-color: var(--accent); }
.rl-pop { position: absolute; z-index: 1000; width: 280px; background: var(--surface, #fff); color: var(--text); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 8px; font-size: 13px; }
.rl-pop-sc { display: flex; flex-wrap: wrap; gap: 4px; }
.rl-pop-o { font: inherit; font-size: 12px; padding: 3px 9px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--text); cursor: pointer; }
.rl-pop-o.on { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: var(--accent); font-weight: 600; }
.rl-pop-q { width: 100%; margin: 8px 0 4px; box-sizing: border-box; }
.rl-pop-l { max-height: 220px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.rl-pop-l label { display: flex; gap: 6px; align-items: center; padding: 2px 4px; border-radius: 6px; cursor: pointer; } .rl-pop-l label:hover { background: rgba(127,127,127,.1); } .rl-pop-l label[hidden] { display: none; }
.va-bar { position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 3000; display: flex; gap: 12px; align-items: center; padding: 6px 8px 6px 16px; background: #c0392b; color: #fff; border-radius: 0 0 12px 12px; box-shadow: 0 4px 14px rgba(0,0,0,.25); font-size: 14px; }
.va-bar .btn { background: #fff; color: #c0392b; border-color: #fff; padding: 3px 10px; }
body.va-on { box-shadow: inset 0 0 0 4px #c0392b; }
.rl-search { width: 100%; max-width: 520px; margin: 6px 0 10px; box-sizing: border-box; }
.ph-sw { position: relative; display: inline-block; width: 38px; height: 22px; cursor: pointer; vertical-align: middle; }
.ph-sw input { opacity: 0; width: 0; height: 0; position: absolute; }
.ph-sw span { position: absolute; inset: 0; background: #e8b4b4; border-radius: 999px; transition: background .15s; }
.ph-sw span::before { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.ph-sw input:checked + span { background: #2e9e57; }
.ph-sw input:checked + span::before { transform: translateX(16px); }
.ph-sw.off { cursor: not-allowed; opacity: .55; }
.hp-mail-html { background: #fff; color: #222; padding: 12px; border-radius: 8px; }
.hp-mail-html a { pointer-events: none; }
.hp-mail-html table { width: auto !important; border-collapse: separate; } .hp-mail-html td { border: 0 !important; background-clip: padding-box; }
.wa-plat { display: flex; gap: 8px; margin: 8px 0 12px; }
.wa-steps { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.wa-steps li { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: left; }
.wa-steps li > div { font-size: 13px; line-height: 1.35; width: 100%; }
.wa-shot { width: 140px; height: 280px; display: block; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }
.wa-n { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: #25D366; color: #fff; font-weight: 700; font-size: 12px; align-items: center; justify-content: center; margin-right: 6px; }
.wa-qr { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 4px 0 12px; } .wa-qr svg { background: #fff; padding: 6px; border-radius: 8px; width: 150px; height: 150px; }
dialog.my-dlg:has(.wa-steps) { width: min(980px, 96vw); }
.rl-slot { display: block; width: calc(100% - 20px); margin: 6px 10px; padding: 6px; border: 2px dashed var(--accent); border-radius: 8px; background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.rl-slot:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.rl-arr .me-sec.rl-moving { outline: 3px solid var(--accent); opacity: .7; }
.rl-bk.rl-lv2 td { background: color-mix(in srgb, var(--rl-subc, var(--accent)) 9%, transparent); font-size: 13.5px; }
.rl-bk.rl-lv3 td { background: color-mix(in srgb, var(--rl-subc, var(--accent)) 5%, transparent); font-size: 13px; }
.rl-arr .me-sec.rl-subsec > .me-head { background: color-mix(in srgb, var(--rl-subc, var(--accent)) 14%, transparent); }
.rl-arr .me-sec.rl-lv2 > .me-head { background: color-mix(in srgb, var(--rl-subc, var(--accent)) 9%, transparent); }
.rl-arr .me-sec.rl-lv3 > .me-head { background: color-mix(in srgb, var(--rl-subc, var(--accent)) 5%, transparent); }

.rl-path { font-weight: 400; }
.rl-move { font-size: 13px; padding: 2px 6px; }
.rl-arr .me-name { flex: 0 1 380px; width: 380px; } .rl-arr .me-item { gap: 8px; } .rl-arr .me-item select { max-width: 220px; } .rl-arr-l { min-width: 0; }
.rl-o.rl-c.on { background: rgba(40, 160, 80, .15); border-color: rgba(40, 160, 80, .5); }
/* the three columns of the choices, and only the chosen one in green (2026-11-05) */
.rl-3 { display: inline-grid; grid-template-columns: repeat(3, 96px); gap: 6px; vertical-align: middle; }
.rl-3 > .rl-o { margin: 0; justify-content: center; width: 100%; box-sizing: border-box; }
.rl-o-sp { display: block; }
.rl-tbl button.rl-o, .rl-tbl button.rl-o.on.rl-none, .rl-tbl button.rl-o.on.rl-view { background: transparent; border-color: var(--border); color: var(--text); font-weight: 400; }
.rl-tbl button.rl-o.on { background: #2e9e57 !important; border-color: #2e9e57 !important; color: #fff !important; font-weight: 600; }
.rl-tbl button.rl-o:disabled { opacity: .5; cursor: not-allowed; }

.rl-pall { flex-basis: 100%; display: flex; gap: 6px; margin-bottom: 4px; }

/* TripIt */
.tp-trip h2.tp-t { margin: 0; font-size: 18px; }
.tp-day { margin-top: 10px; }
.tp-dh { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); border-bottom: 1px solid var(--border); padding-bottom: 3px; margin-bottom: 4px; }
.tp-seg { display: flex; gap: 10px; align-items: flex-start; padding: 6px 4px; border-radius: 6px; }
.tp-seg:hover { background: rgba(127,127,127,.06); }
.tp-ic { font-size: 18px; width: 24px; text-align: center; }
.tp-time { width: 110px; font-variant-numeric: tabular-nums; font-weight: 600; }
.tp-main { flex: 1; min-width: 0; }
.tp-conf { font-family: ui-monospace, monospace; letter-spacing: .04em; }
.tp-acts { display: flex; gap: 4px; }
@media (max-width: 640px) { .tp-time { width: 70px; } }

/* TripIt: the travellers and the map */
.tp-who { margin: 2px 0 6px; font-size: 14px; }
.tp-map { height: 320px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); margin: 6px 0 8px; background: var(--surface-2, #eef1f5); z-index: 0; position: relative; }
.tp-map.empty { height: auto; }
.tp-mapnote { padding: 10px; margin: 0; }
.tp-acts2 { justify-content: flex-end; }
.tp-pin span { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid #2f6fde; box-shadow: 0 1px 4px rgba(0,0,0,.35); font-size: 15px; }
.tp-plane span { display: block; font-size: 20px; color: #2f6fde; text-shadow: 0 0 3px #fff, 0 0 3px #fff; line-height: 24px; text-align: center; }
.leaflet-popup-content { color: #222; }

.tp-ic[draggable] { cursor: grab; border-radius: 6px; } .tp-ic[draggable]:hover { background: rgba(127,127,127,.15); outline: 1px dashed var(--muted); }
.tp-dragging { opacity: .4; }
.tp-seg.tp-over { box-shadow: 0 -3px 0 var(--accent, #2f6fde); }
.tp-trip.tp-over { outline: 2px dashed var(--accent, #2f6fde); outline-offset: 2px; }

.tp-icons { letter-spacing: -2px; margin-right: 4px; }

/* TripIt: the details on the left, the map on the right; one under the other on a narrow screen */
.tp-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 42%); gap: 16px; align-items: start; }
.tp-right { position: sticky; top: 8px; }
.tp-right .tp-map { height: 380px; margin: 0; }
.tp-left .tp-acts2 { justify-content: flex-start; margin-bottom: 4px; }
@media (max-width: 900px) { .tp-cols { grid-template-columns: 1fr; } .tp-right { position: static; order: -1; } .tp-right .tp-map { height: 260px; } }

.tp-q { flex: 1; min-width: 220px; max-width: 520px; }

/* TripIt cards, like Expedia's trips: the destination's picture, its name, the dates */
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.tp-card { position: relative; height: 230px; border-radius: 16px; overflow: hidden; cursor: pointer; color: #fff; background: linear-gradient(135deg, #2f6fde, #19a3a3); background-size: cover; background-position: center; box-shadow: 0 2px 10px rgba(0,0,0,.15); transition: transform .12s, box-shadow .12s; }
.tp-card:hover, .tp-card:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.25); outline: none; }
.tp-card-ic { position: absolute; left: 14px; bottom: 98px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.92); color: #234; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.tp-card-txt { position: absolute; left: 14px; right: 14px; bottom: 12px; font-size: 13px; line-height: 1.45; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.tp-card-city { font-size: 32px; font-weight: 700; line-height: 1.1; margin-bottom: 4px; letter-spacing: -.01em; }
.tp-ph { position: absolute; right: 8px; top: 8px; max-width: 70%; display: flex; gap: 4px; align-items: center; }
.tp-credit { font-size: 10px; min-width: 0; color: #fff; background: rgba(0,0,0,.35); padding: 1px 6px; border-radius: 6px; text-decoration: none; max-width: 60%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tp-back { margin-bottom: 10px; }
@media (max-width: 640px) { .tp-grid { grid-template-columns: 1fr; } .tp-card { height: 190px; } .tp-card-city { font-size: 26px; } }

.tp-files a { margin-right: 8px; }

.tp-card-person { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.tp-card .tp-card-person { color: #ff1f1f; font-weight: 800; text-shadow: 0 0 2px #000, 0 1px 4px rgba(0,0,0,.95), 0 0 10px rgba(0,0,0,.6); }          /* the traveller of a personal trip, in red on the card (Yanick, 2026-10-15) */

/* an item copied from another trip */
.tp-copy { display: inline-block; margin-left: 6px; padding: 0 6px; border: 2px solid #c62828; color: #c62828; border-radius: 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; transform: rotate(-4deg); vertical-align: middle; }

/* ↻ another picture, beside the photographer's name on a trip card */
.tp-repic { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 13px; line-height: 20px; padding: 0; cursor: pointer; }
.tp-repic:hover { background: rgba(0,0,0,.7); }
.tp-tdel { font-size: 11px; margin-left: 4px; } .tp-tdel:hover { background: #dc2626; }
.tp-repic.busy { animation: tp-spin .8s linear infinite; }
@keyframes tp-spin { to { transform: rotate(360deg); } }

/* a group trip: its personal trips folded under it (Yanick, 2026-10-15) */
.tp-group { position: absolute; left: 12px; top: 10px; background: #1565c0; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .1em; padding: 2px 8px; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.tp-all { position: absolute; right: 12px; bottom: 12px; z-index: 2; border: 0; border-radius: 8px; padding: 5px 10px; background: #fff; color: #1565c0; font-size: 12px; font-weight: 800; letter-spacing: .04em; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.tp-all:hover, .tp-all.on { background: #1565c0; color: #fff; }
.tp-sub { grid-column: 1 / -1; padding: 12px; border: 2px dashed #90caf9; border-radius: 16px; background: rgba(21,101,192,.05); }
.tp-subh { font-weight: 700; margin: 0 0 10px 2px; color: #1565c0; }
/* the traveller: white on a red label (Yanick chose it, 2026-10-15) */
.tp-card .tp-card-person { display: inline-block; color: #fff; background: #d32f2f; padding: 1px 8px; border-radius: 6px; text-shadow: none; box-shadow: 0 1px 4px rgba(0,0,0,.35); }

/* the picture's credit: a small ⓘ, the photographer and Unsplash shown on hover (Yanick, 2026-10-15); the name's label
   lighter so the picture shows through */
.tp-credit { font-size: 12px; }
.tp-credit .tp-cr-txt { display: none; font-size: 10px; }
.tp-credit:hover .tp-cr-txt, .tp-credit:focus .tp-cr-txt { display: inline; }
.tp-card .tp-card-person { background: rgba(211, 47, 47, .55); text-shadow: 0 1px 2px rgba(0,0,0,.6); box-shadow: none; }

/* the name label lighter still (Yanick, 2026-10-15) */
.tp-card .tp-card-person { background: rgba(211, 47, 47, .38); }

/* the trip icon at the top left of the card, GROUP beside it (Yanick, 2026-10-15) */
.tp-card .tp-card-ic { top: 10px; left: 12px; bottom: auto; }
.tp-card .tp-group { left: 50px; top: 14px; }

/* a tools page: the pages under it, as big buttons (easy on a phone) */
.pt-kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 4px 0 16px; }
.pt-kid { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; font-size: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.pt-kid:hover { border-color: var(--accent); color: var(--accent); }
.pt-kid .nav-ic { width: 22px; height: 22px; }

/* the fields of the dialogs (Add a commission, TripIt item…): like the search bars (Yanick, 2026-10-16) */
dialog.rf-wsdlg .form { grid-template-columns: 1fr; gap: 4px; max-width: none; }
dialog.rf-wsdlg .form label { margin-top: 8px; font-size: 12.5px; color: var(--text-2); }
dialog.rf-wsdlg .form input, dialog.rf-wsdlg .form select, dialog.rf-wsdlg .form textarea { width: 100%; box-sizing: border-box; min-height: 42px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); font: inherit; font-size: 14.5px; outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
dialog.rf-wsdlg .form select { padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
dialog.rf-wsdlg .form textarea { min-height: 80px; resize: vertical; }
dialog.rf-wsdlg .form input::placeholder, dialog.rf-wsdlg .form textarea::placeholder { color: var(--muted); }
dialog.rf-wsdlg .form input:focus, dialog.rf-wsdlg .form select:focus, dialog.rf-wsdlg .form textarea:focus { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent), var(--shadow); }
dialog.cr-adddlg { width: min(560px, 96vw); border-radius: 16px; padding: 16px 18px; }
dialog.rf-wsdlg .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

/* Commission reports: sober headers (Yanick, 2026-10-16: the orange months and the blue agents were too much) */
.cr-mhead { background: #5b6573; }
.cr-ahead { background: var(--surface-2); color: var(--text); border-bottom: 1px solid var(--border); }
.cr-ahead .cr-afold { color: var(--text); }
.cr-ahead .cr-aname span { color: var(--text-2); }
.cr-ahead .cr-view { color: var(--accent); opacity: 1; }
.cr-ahead .cr-atot { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
.cr-send { background: var(--accent); color: #fff; } .cr-send:hover { background: color-mix(in srgb, var(--accent) 85%, #000); }
/* the filter of a column, like Excel */
.cr-table th { white-space: nowrap; }
.cr-colf { border: 0; background: none; color: var(--muted); font-size: 11px; padding: 2px 4px; margin-left: 2px; border-radius: 4px; cursor: pointer; vertical-align: middle; }
.cr-colf:hover { background: var(--surface-2); color: var(--text); }
.cr-colf.on { background: var(--accent); color: #fff; }
.cr-cf { position: absolute; z-index: 60; width: 270px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 10px; }
.cr-cfq { width: 100%; box-sizing: border-box; height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; outline: none; }
.cr-cfq:focus { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.cr-cfall { display: flex; gap: 10px; margin: 6px 2px; } .cr-cfall button { border: 0; background: none; color: var(--accent); font: inherit; font-size: 12px; cursor: pointer; padding: 0; }
.cr-cfl { max-height: 260px; overflow: auto; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 4px 0; }
.cr-cfl label { display: flex; align-items: center; gap: 8px; padding: 3px 4px; font-size: 13px; border-radius: 6px; cursor: pointer; }
.cr-cfl label:hover { background: var(--surface-2); } .cr-cfl label span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cr-cfl label b { font-weight: 400; color: var(--muted); font-size: 11px; }
.cr-cfb { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }

/* the totals in the blue bar; the column filters in one line above the tables (Yanick, 2026-10-16) */
.cr-hstats { flex: 1; display: flex; justify-content: center; }
.cr-hstats .cr-tiles { display: flex; gap: 22px; margin: 0; flex-wrap: wrap; }
.cr-hstats .cr-tile { background: none; border: 0; padding: 0; min-width: 0; }
.cr-hstats .cr-tile span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.7); }
.cr-hstats .cr-tile b { font-size: 17px; color: #fff; font-variant-numeric: tabular-nums; }
.cr-hstats .cr-tile.cr-green b { color: #8fe0a8; }
.cr-colbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; padding: 8px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.cr-colbar-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-right: 4px; }
.cr-colbtn { border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: inherit; font-size: 12.5px; padding: 4px 10px; border-radius: 8px; cursor: pointer; }
.cr-colbtn:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); color: var(--text); }
.cr-colbtn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.cr-colclr { color: #b02a2a; border-color: #efb4b4; }

/* the Options pill in blue (the agent bar is light now); fixed columns so the filter line sits above them (Yanick, 2026-10-16) */
.cr-ahead .cr-opt { background: #2563eb; border-color: #2563eb; color: #fff; }
.cr-ahead .cr-opt:hover { background: #1d4ed8; }
.cr-table { table-layout: fixed; min-width: 1480px; }
.cr-table td, .cr-table th { overflow: hidden; text-overflow: ellipsis; }
.cr-table .cr-notes { max-width: none; min-width: 0; }
.cr-table .cr-ag { color: var(--text-2); }
.cr-colbar { margin: 0 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); padding: 0; }
.cr-ftable th { padding: 6px 10px; background: none; }
.cr-ftable .cr-colbtn { width: 100%; text-align: left; font-size: 11.5px; text-transform: none; letter-spacing: 0; padding: 4px 8px; }
.cr-ftable th.num .cr-colbtn { text-align: right; }
.cr-ftable .cr-colclr { border: 0; background: #fde8e8; color: #b02a2a; border-radius: 6px; font: inherit; font-size: 12px; padding: 2px 6px; cursor: pointer; }
.cr-mbody { margin-left: 0; padding-left: 0; border-left: 0; }          /* the tables of a month line up with the filter line */

/* one blue for the commission page: the title bar, Options and Send report, as the unread count of the menu (Yanick, 2026-10-16) */
.cr-head { background: var(--brand); }
.cr-head .btn, .cr-bus button.on { color: var(--brand); }
.cr-filters { border-bottom-color: var(--brand); }
.cr-ahead .cr-opt, .cr-send { background: var(--brand); border-color: var(--brand); color: #fff; }
.cr-ahead .cr-opt:hover, .cr-send:hover { background: var(--brand-dark); }

/* the totals: on the right of the filter bar, beside Reset filters */
.cr-fstats { margin-left: auto; align-self: flex-end; }
.cr-fstats .cr-tiles { display: flex; gap: 10px; margin: 0; flex-wrap: wrap; }
.cr-fstats .cr-tile { padding: 6px 12px; min-width: 0; }
.cr-fstats .cr-tile span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cr-fstats .cr-tile b { font-size: 16px; font-variant-numeric: tabular-nums; }

/* ⚙ settings in the top bar (Organise the menu, the colours) */
.gear-wrap { position: relative; }
.gear-btn { font-size: 16px; padding-left: 10px; padding-right: 10px; }
.gear-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 230px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.16); padding: 6px; }
.gear-menu button { display: block; width: 100%; text-align: left; border: 0; background: none; color: var(--text); font: inherit; font-size: 14px; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.gear-menu button:hover { background: var(--surface-2); }
.col-row { display: flex; align-items: center; gap: 12px; margin: 10px 0; } .col-row label { flex: 1; font-weight: 600; } .col-row input[type=color] { width: 54px; height: 36px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); padding: 2px; cursor: pointer; }

/* World Data (2026-10-16) */
.wd-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--brand); color: #fff; padding: 12px 18px; border-radius: 10px 10px 0 0; }
.wd-head h1 { margin: 0; font-size: 20px; color: #fff; } .wd-kick { font-size: 11px; opacity: .8; }
.wd-srcs { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.wd-srcs button { border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff; font: inherit; font-size: 12.5px; font-weight: 600; padding: 5px 14px; border-radius: 999px; cursor: pointer; }
.wd-srcs button.on { background: #fff; color: var(--brand); border-color: #fff; }
.wd-bar { background: var(--surface); border: 1px solid var(--border); border-top: 0; padding: 12px 18px; margin-bottom: 14px; border-radius: 0 0 10px 10px; }
.wd-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wd-in { height: 38px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; outline: none; }
.wd-in:focus { border-color: color-mix(in srgb, var(--brand) 55%, var(--border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); }
.wd-q { flex: 1; min-width: 240px; } .wd-hs { width: 130px; } .wd-lab { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--text-2); }
.wd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.wd-chips button { border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: inherit; font-size: 12.5px; padding: 4px 11px; border-radius: 999px; cursor: pointer; }
.wd-chips button i { font-style: normal; color: var(--muted); font-size: 11px; }
.wd-chips button.on { background: var(--brand); border-color: var(--brand); color: #fff; } .wd-chips button.on i { color: rgba(255,255,255,.8); }
.wd-stat { margin-top: 8px; }
.wd-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 10px; border-bottom: 1px solid var(--border); }
.wd-tabs button { border: 0; background: none; font: inherit; font-size: 13.5px; color: var(--text-2); padding: 8px 12px; border-bottom: 2px solid transparent; cursor: pointer; }
.wd-tabs button.on { color: var(--text); font-weight: 600; border-bottom-color: var(--brand); }
.wd-tbl td { vertical-align: top; } .wd-tbl .wd-desc { min-width: 260px; max-width: 420px; white-space: normal; color: var(--text-2); }
.wd-link { border: 0; background: none; padding: 0; font: inherit; color: var(--brand); font-weight: 600; text-align: left; cursor: pointer; } .wd-link:hover { text-decoration: underline; }
.wd-crumb { margin: 0 0 10px; display: flex; gap: 10px; align-items: center; }
.wd-barc { width: 160px; } .wd-barc i { display: block; height: 10px; border-radius: 3px; background: var(--brand); }
.wd-h2 { font-size: 16px; margin: 0 0 10px; }

.wd-range { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; } .wd-mo { width: 84px; padding-right: 6px; } .wd-yr { width: 92px; padding-right: 6px; }

/* World Data: every grade on its own button, by family */
.wd-grades { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.wd-grp { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.wd-chips button.wd-fam, .wd-grp button.wd-fam { font-weight: 700; min-width: 120px; text-align: left; border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }
.wd-grp button { border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: inherit; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; cursor: pointer; }
.wd-grp button i { font-style: normal; color: var(--muted); font-size: 11px; }
.wd-grp button.on { background: var(--brand); border-color: var(--brand); color: #fff; } .wd-grp button.on i { color: rgba(255,255,255,.8); }
/* The zoom of the viewers: − Fit + */
.zoomer { display: inline-flex; align-items: center; gap: 2px; margin: 0 6px; } .zoomer .btn { min-width: 34px; padding: 4px 8px; font-weight: 700; } .zoomer .zl { min-width: 58px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pv-stage.zoomed { overflow: auto; display: block; text-align: center; max-height: 78vh; } .pv-stage.zoomed img { cursor: grab; } .pv-stage.zoomed .pv-nav { position: sticky; }
/* TripIt: the trip number on the cards, the search inside a trip, the list of trips of Move to / Copy to */
.tp-card-ref { font-size: 11px; font-weight: 700; letter-spacing: .06em; opacity: .9; }
.tp-q2 { border-color: var(--accent); } .tp-found { margin: 6px 0; font-size: 13px; color: var(--text-2); }
.tp-pick { position: fixed; z-index: 1000; width: min(460px, 94vw); background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.tp-pick input { width: 100%; } .tp-pick-list { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; }
.tp-pick-list button { text-align: left; border: 0; background: none; color: inherit; font: inherit; font-size: 13px; padding: 6px 8px; border-radius: 6px; cursor: pointer; } .tp-pick-list button:hover, .tp-pick-list button:focus-visible { background: var(--surface-2); outline: 0; }
.tp-pick-ref { font-weight: 700; font-size: 12px; color: var(--accent); margin-right: 4px; }
/* Online apps: the ⚙ of the apps with a set-up window */
.apps-set { border: 1px solid var(--border); background: none; cursor: pointer; font-size: 12px; padding: 2px 8px; border-radius: 6px; color: inherit; white-space: nowrap; } .apps-set:hover, .apps-set:focus-visible { background: var(--surface-2); outline: 0; }
.apps-foot { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 6px; } .apps-set-line { text-align: left; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; padding: 4px 6px; border-radius: 6px; } .apps-set-line:hover { background: var(--surface-2); }
.app-setup { min-width: min(560px, 90vw); } .app-setup .card { box-shadow: none; border: 0; padding: 0; }
/* Admin › Carl by email: the outside addresses for production reports */
.mr-prod { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; } .mr-chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--border); border-radius: 14px; padding: 2px 4px 2px 10px; font-size: 13px; }
/* savedFlash: a green check that pops over a Save button */
.saved-pop { position: fixed; z-index: 2000; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; animation: savedpop 1.7s ease forwards; }
.saved-pop svg { width: 64px; height: 64px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.25)); } .saved-pop circle { fill: #16a34a; } .saved-pop path { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: savedtick .45s .15s ease forwards; }
.saved-pop span { font-weight: 700; color: #fff; background: #16a34a; border-radius: 10px; padding: 1px 10px; font-size: 13px; }
@keyframes savedpop { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } 25% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -80%) scale(1); } }
@keyframes savedtick { to { stroke-dashoffset: 0; } }
.btn.saved-ok { background: #16a34a !important; border-color: #16a34a !important; color: #fff !important; transition: background .2s; }
@media (prefers-reduced-motion: reduce) { .saved-pop { animation: none; } .saved-pop path { animation: none; stroke-dashoffset: 0; } }
/* My day: Behu, the ideas for the hub */
.bh-list { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.bh-i { display: flex; align-items: flex-start; gap: 8px; padding: 6px 4px; border-bottom: 1px solid var(--border); } .bh-i input { margin-top: 3px; }
.bh-t { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; } .bh-i.done .bh-t > span:first-child { text-decoration: line-through; opacity: .6; }
/* Sign a document: the full window, the pages, what is put on them, the signature pad */
.sg-dlg { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; background: var(--bg); color: var(--text); }
.sg-dlg:not([open]) { display: none; }
.sg-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--border); background: var(--surface); flex-wrap: wrap; }
.sg-name { max-width: 30vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sg-tools { display: flex; gap: 4px; flex-wrap: wrap; } .sg-tools .btn.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.sg-style { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 6px 12px; border-bottom: 1px solid var(--border); background: var(--surface); } .sg-style[hidden] { display: none; }
.sg-style select { height: 30px; } .sg-style .btn { min-width: 30px; padding-left: 8px; padding-right: 8px; } .sg-style .btn.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.sg-sw { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); padding: 0; cursor: pointer; margin-left: 2px; } .sg-sw.on { box-shadow: 0 0 0 2px var(--accent); }
.sg-style input[type=color] { width: 30px; height: 28px; padding: 0 2px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); cursor: pointer; }
.sg-hint { margin: 6px 12px; } .sg-pages { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 16px; background: var(--surface-2); }
.sg-page { position: relative; box-shadow: 0 2px 10px rgba(0,0,0,.25); background: #fff; flex: none; } .sg-page canvas { display: block; } .sg-layer { position: absolute; inset: 0; } .sg-pages.placing .sg-layer { cursor: crosshair; }
.sg-el { position: absolute; border: 1px dashed transparent; cursor: move; touch-action: none; } .sg-el:hover, .sg-el:focus-within { border-color: #2563eb; background: rgba(37,99,235,.06); }
.sg-el img { width: 100%; height: 100%; display: block; pointer-events: none; user-select: none; } .sg-txt { display: block; white-space: nowrap; line-height: 1.4; color: #0b2a6f; font-family: Helvetica, Arial, sans-serif; outline: 0; padding: 0 2px; cursor: text; }
.sg-del { position: absolute; top: -11px; right: -11px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: #dc2626; color: #fff; font-size: 12px; line-height: 22px; padding: 0; cursor: pointer; display: none; } .sg-el:hover .sg-del, .sg-el:focus-within .sg-del { display: block; }
.sg-rs { position: absolute; right: -6px; bottom: -6px; width: 12px; height: 12px; border-radius: 3px; background: #2563eb; cursor: nwse-resize; display: none; } .sg-el:hover .sg-rs, .sg-el:focus-within .sg-rs { display: block; }
.sg-mark { width: min(720px, 96vw); } .sg-pad { width: 100%; height: auto; aspect-ratio: 3 / 1; border: 1px dashed var(--border); border-radius: 8px; background: #fff; touch-action: none; cursor: crosshair; }
.sg-send { width: min(560px, 96vw); } .sg-send textarea { width: 100%; }

/* v4.231: Inventory page (trace a lot or a WS, stock now, month-end value, watch list) */
.iv-search .row { gap: 8px; flex-wrap: wrap; } .iv-search input[type=search] { flex: 1 1 260px; min-width: 0; }
.iv-card h2 { margin: 0 0 6px; font-size: 19px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .iv-card h3 { margin: 16px 0 6px; font-size: 14px; }
.iv-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; margin-bottom: 4px; }
.iv-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--accent, #2563eb); cursor: pointer; text-decoration: underline dotted; }
.iv-tik { text-decoration: none; font-size: 12px; color: var(--text-2); }
.iv-pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--border); white-space: nowrap; }
.iv-k-in, .iv-k-added { background: #e3f4e8; color: #17663a; border-color: #b9e2c7; } .iv-k-sold { background: #e6eefc; color: #1d4ea8; border-color: #c3d4f5; }
.iv-k-wrap, .iv-k-transform { background: #f3e8fb; color: #6b2c91; border-color: #dcc4ee; } .iv-k-nows { background: #fde7e7; color: #a12323; border-color: #f2c0c0; } .iv-prob { border-style: dashed; }
.iv-tab td { vertical-align: top; } .iv-note { white-space: normal; min-width: 160px; max-width: 360px; font-size: 12px; }
.iv-kids > td { background: var(--surface-2); padding: 6px 6px 6px 22px; } .iv-kid { border-left: 3px solid #b48ad6; padding-left: 10px; margin: 4px 0; }
.iv-fold { border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 2px 0; color: var(--text); text-align: left; }
.iv-kidbox { margin-top: 4px; }
.iv-check { margin: 6px 0 8px; padding: 8px 10px; border-radius: 8px; font-size: 13px; background: #e9f6ee; border: 1px solid #bfe3cc; } .iv-check.bad { background: #fff4e0; border-color: #f0d199; }
.iv-neg { color: #c0262d; } .iv-warn { color: #a85a00; font-weight: 600; }
.iv-st { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); } .iv-st-Active { background: #e3f4e8; color: #17663a; }
.iv-tag { font-size: 11px; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-weight: 600; }
.iv-filt { gap: 10px; flex-wrap: wrap; } .iv-grps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; } .iv-grp h3, .iv-cols h3 { margin: 8px 0 6px; font-size: 14px; }
.iv-old, .iv-oldrow td { background: #fff1d6; } .iv-tile-old { border-color: #f0c36b; }
.iv-cols { display: grid; grid-template-columns: minmax(420px, 1fr) 2fr; gap: 14px; align-items: start; } @media (max-width: 1100px) { .iv-cols { grid-template-columns: 1fr; } }
.iv-wrap { max-height: calc(100vh - 220px); overflow: auto; } .iv-wrap thead th { position: sticky; top: 0; z-index: 1; }
.iv-mrow { cursor: pointer; } .iv-mrow:hover td, .iv-mrow.on td { background: var(--surface-2); } .iv-left td { color: var(--muted); }
.iv-tot td { font-weight: 700; border-top: 2px solid var(--border); }
/* a card of a page (a section with its own title) and the modern table of the hub (Yanick, 2026-10-20: tables like the rest, not
   the old look): rounded card, soft header, a light line between rows, the row under the mouse lit. New tables use .hub-table */
.hub-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius, 12px); box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 14px; min-width: 0; }
.hub-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; } .hub-card-head h3 { margin: 0; font-size: 15px; }
.hub-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.hub-table th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); color: var(--text-2); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.hub-table th:first-child { border-top-left-radius: 8px; } .hub-table th:last-child { border-top-right-radius: 8px; }
.hub-table td { padding: 9px 12px; border-bottom: 1px solid var(--grid, var(--border)); white-space: nowrap; vertical-align: middle; }
.hub-table tbody tr:hover td { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.hub-table tbody tr:last-child td { border-bottom: 0; }
.hub-table .num { text-align: right; }
/* Inventory, Stock now */
.iv-two { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 14px; align-items: start; margin-top: 12px; } @media (max-width: 1000px) { .iv-two { grid-template-columns: 1fr; } }
.iv-prods { display: flex; flex-direction: column; margin-bottom: 8px; }
.iv-prod { display: grid; grid-template-columns: minmax(140px, 220px) 1fr auto; grid-template-rows: auto auto; column-gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--grid, var(--border)); align-items: center; } .iv-prod:last-child { border-bottom: 0; }
.iv-pn { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .iv-pv { font-weight: 700; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; } .iv-pm { grid-column: 1 / -1; margin-top: 2px; }
.iv-bar { display: flex; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; } .iv-bar i { display: block; height: 100%; background: var(--accent); } .iv-bar i.o { background: #f59e0b; }
.iv-o { color: #b45309; } :root[data-theme=dark] .iv-o { color: #f5b14c; } @media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .iv-o { color: #f5b14c; } }
.iv-places { display: flex; flex-direction: column; gap: 10px; } .iv-place { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--surface-2); }
.iv-pl-n { font-weight: 600; font-size: 13px; } .iv-pl-v { font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin: 2px 0; }
.iv-age { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; } .iv-age.g { background: #e3f4e8; color: #17663a; } .iv-age.o { background: #fff1d6; color: #9a5b00; } .iv-age.r { background: #fde7e7; color: #a12323; }
:root[data-theme=dark] .iv-age.g { background: rgba(34,197,94,.16); color: #7ee2a8; } :root[data-theme=dark] .iv-age.o { background: rgba(245,158,11,.16); color: #f5b14c; } :root[data-theme=dark] .iv-age.r { background: rgba(239,68,68,.16); color: #f39b9b; } @media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .iv-age.g { background: rgba(34,197,94,.16); color: #7ee2a8; } :root:not([data-theme=light]) .iv-age.o { background: rgba(245,158,11,.16); color: #f5b14c; } :root:not([data-theme=light]) .iv-age.r { background: rgba(239,68,68,.16); color: #f39b9b; } }
.iv-count { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 999px; background: #c0262d; color: #fff; font-size: 11px; font-weight: 700; text-align: center; } .iv-count.zero { background: var(--surface-2); color: var(--text-2); }
.iv-sec { margin-bottom: 10px; } .iv-sec summary { cursor: pointer; font-size: 14px; }
:root[data-theme=dark] .iv-k-in, :root[data-theme=dark] .iv-k-sold, :root[data-theme=dark] .iv-k-wrap, :root[data-theme=dark] .iv-k-transform, :root[data-theme=dark] .iv-k-nows, :root[data-theme=dark] .iv-st-Active { background: var(--surface-2); color: var(--text); }
:root[data-theme=dark] .iv-check, :root[data-theme=dark] .iv-old, :root[data-theme=dark] .iv-oldrow td { background: color-mix(in srgb, #f0c36b 18%, transparent); color: var(--text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .iv-k-in, :root:not([data-theme=light]) .iv-k-sold, :root:not([data-theme=light]) .iv-k-wrap, :root:not([data-theme=light]) .iv-k-transform, :root:not([data-theme=light]) .iv-k-nows, :root:not([data-theme=light]) .iv-st-Active { background: var(--surface-2); color: var(--text); } :root:not([data-theme=light]) .iv-check, :root:not([data-theme=light]) .iv-old, :root:not([data-theme=light]) .iv-oldrow td { background: color-mix(in srgb, #f0c36b 18%, transparent); color: var(--text); } }
/* Inventory, To do: the transport status of a load */
.iv-tr { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; } .iv-tr.d { background: #e3f4e8; color: #17663a; } .iv-tr.p { background: #e6eefc; color: #1d4ea8; }
:root[data-theme=dark] .iv-tr.d { background: rgba(34,197,94,.16); color: #7ee2a8; } :root[data-theme=dark] .iv-tr.p { background: rgba(59,130,246,.18); color: #9cc2ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .iv-tr.d { background: rgba(34,197,94,.16); color: #7ee2a8; } :root:not([data-theme=light]) .iv-tr.p { background: rgba(59,130,246,.18); color: #9cc2ff; } }
.hub-card-head h3 .iv-count { margin-left: 4px; vertical-align: 2px; }
.iv-party { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
/* Inventory, To do: the lines like the TIK report Worksheet (KEY) */
.iv-key td { vertical-align: top; } .iv-key td.iv-w { white-space: normal; min-width: 150px; max-width: 220px; }
.iv-file { white-space: nowrap; text-decoration: none; } .iv-file:hover { text-decoration: underline; }

.iv-tr.n { background: #fff1d6; color: #9a5b00; } .iv-tr.c { background: #f3e8fb; color: #6b2c91; }
:root[data-theme=dark] .iv-tr.n { background: rgba(245,158,11,.16); color: #f5b14c; } :root[data-theme=dark] .iv-tr.c { background: rgba(168,85,247,.18); color: #d4b0f5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .iv-tr.n { background: rgba(245,158,11,.16); color: #f5b14c; } :root:not([data-theme=light]) .iv-tr.c { background: rgba(168,85,247,.18); color: #d4b0f5; } }
.iv-wsl { font-weight: 700; text-decoration: none; white-space: nowrap; } .iv-wsl:hover { text-decoration: underline; }

/* Inventory, To do: the supplier invoice number, yellow = in TIK, green = entered in QuickBooks */
.iv-qb { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.iv-qb.out { background: #fef3c7; color: #8a5a00; border: 1px solid #f5d77a; } .iv-qb.in { background: #dcfce7; color: #166534; border: 1px solid #a7e3bd; }
.iv-qb.cn { font-style: italic; } .iv-qb.none { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); font-weight: 600; }
:root[data-theme=dark] .iv-qb.out { background: rgba(250,204,21,.16); color: #fcd34d; border-color: rgba(250,204,21,.35); } :root[data-theme=dark] .iv-qb.in { background: rgba(34,197,94,.16); color: #86efac; border-color: rgba(34,197,94,.35); }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .iv-qb.out { background: rgba(250,204,21,.16); color: #fcd34d; border-color: rgba(250,204,21,.35); } :root:not([data-theme=light]) .iv-qb.in { background: rgba(34,197,94,.16); color: #86efac; border-color: rgba(34,197,94,.35); } }
.iv-dash { text-align: center; color: var(--muted); }

.gear-sub { display: block; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 2px; white-space: normal; max-width: 240px; }

/* Reminders: files, and the ones that rang but are not Done yet (Yanick, 2026-10-21) */
.rm-files { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; } .rm-files a { text-decoration: none; } .rm-files a:hover { text-decoration: underline; }
.rm-item.rm-open { background: color-mix(in srgb, #f59e0b 12%, transparent); border-radius: 8px; }
.rm-day-open { color: #b45309; font-weight: 700; }
.my-rdone { font-weight: 700; color: #166534; }
.rm-clip { cursor: pointer; } .rm-efiles { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0; } .rm-ef { display: inline-flex; align-items: center; gap: 4px; }
.iv-tabrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* the explanations of a page are not shown on it: ⓘ in the top bar opens them (Yanick, 2026-10-21) */
.page-help { display: none !important; }
.help-dlg .help-body { font-size: 14px; line-height: 1.55; color: var(--text); } .help-dlg .help-body p { margin: 0 0 10px; }

/* Mail: conversation mode (Yanick, 2026-10-21) */
.mp-cnt { display: inline-block; min-width: 18px; padding: 0 6px; margin-right: 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 11px; font-weight: 700; text-align: center; color: var(--text-2); }
.mp-conv { margin: 8px 0 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.mp-conv summary { cursor: pointer; padding: 6px 10px; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.mp-conv-i { display: grid; grid-template-columns: minmax(120px, 200px) auto 1fr; gap: 10px; align-items: baseline; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--border); background: none; padding: 6px 10px; font: inherit; font-size: 12.5px; color: var(--text); cursor: pointer; }
.mp-conv-i:hover:not([disabled]) { background: color-mix(in srgb, var(--accent) 7%, transparent); } .mp-conv-i.on { background: var(--surface-2); cursor: default; }
.mp-conv-i.unread .mp-conv-w { font-weight: 700; } .mp-conv-w { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mp-conv-d { color: var(--muted); white-space: nowrap; } .mp-conv-p { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#mpconv[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 12%, transparent); }

/* Mail: To and Cc as address chips, dragged from one to the other like in Outlook (Yanick, 2026-10-21) */
.mc-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 10px; padding: 3px 6px; background: var(--surface); min-height: 38px; box-sizing: border-box; cursor: text; }
.mc-chips:focus-within { border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.mc-chips > input { flex: 1; min-width: 140px; border: 0 !important; box-shadow: none !important; padding: 4px 2px !important; min-height: 28px !important; background: transparent !important; }
.mc-chip { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; padding: 2px 4px 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); font-size: 12.5px; cursor: grab; user-select: none; }
.mc-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mc-chip button { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 11px; padding: 0 3px; } .mc-chip button:hover { color: var(--danger); }
.mc-chip.dragging { opacity: .45; } .mc-chiphost.drop-on .mc-chips { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
/* the field labels of the email (.mc-f span) must not size the chips */
.mm-compose .mc-f span.mc-chips, .mc-f span.mc-chips { width: auto; flex: 1 1 auto; min-width: 0; font-size: inherit; color: inherit; }
.mm-compose .mc-f span.mc-chip, .mc-f span.mc-chip { width: auto; flex: none; color: var(--text); font-size: 12.5px; }
.mm-compose .mc-f .mc-chip span, .mc-f .mc-chip span { width: auto; flex: initial; color: inherit; font-size: inherit; }
.mm-compose .mc-f.sug-host .sug-box, .mc-f .mc-chips.sug-host .sug-box { left: 0; }
.mc-chips.sug-host { position: relative; }
/* the "About this page" button: a drawn info icon, same weight as the other icons of the hub */
#helpb { display: inline-flex; align-items: center; justify-content: center; }
.help-ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.help-ic .dot { fill: currentColor; stroke-width: 1.4; }

/* the header of an open email, like Outlook (Yanick, 2026-10-21) */
.ol-meta { align-items: flex-start; gap: 12px; }
.olm-from { font-size: 15px; font-weight: 600; color: var(--text); }
.olm-line { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 12.5px; color: var(--text-2); margin-top: 3px; }
.olm-k { width: 22px; flex: none; color: var(--text-2); }
.olm-p { display: inline-flex; align-items: center; gap: 5px; color: var(--text); white-space: nowrap; } .olm-p i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--muted); display: inline-block; }
.olm-sep { color: var(--muted); margin-left: -4px; }
.olm-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.olm-acts { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: var(--surface); }
.olm-acts button { display: inline-flex; align-items: center; gap: 6px; border: 0; border-right: 1px solid var(--border); background: none; padding: 6px 12px; font: inherit; font-size: 13px; color: var(--text); cursor: pointer; }
.olm-acts button:last-child { border-right: 0; } .olm-acts button:hover { background: var(--surface-2); }
.olm-acts svg { width: 16px; height: 16px; color: var(--accent); }
.olm-more { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; } .olm-more:empty { display: none; }
.olm-when { font-size: 12px; color: var(--muted); }
.mp-read .mm-files .doc-link { border-radius: 4px; border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); padding: 7px 12px; font-size: 13px; }

/* Mail: a conversation unfolds in the list, its emails under it, like Outlook (Yanick, 2026-10-21) */
.mp-item.has-cx { position: relative; } .mp-item.has-cx .mm-main { padding-left: 28px; }
.mp-cx { position: absolute; left: 4px; top: 10px; z-index: 2; min-width: 20px; padding: 1px 4px; border-radius: 6px; font-size: 11px; font-weight: 700; color: var(--text-2); cursor: pointer; user-select: none; text-align: center; }
.mp-cx:hover, .mp-cx.on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.mp-sub { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface-2) 60%, transparent); padding: 6px 10px 6px 44px; font: inherit; font-size: 12.5px; color: var(--text); cursor: pointer; }
.mp-sub:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); } .mp-sub.sel { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.mp-sub.unread .mp-sub-w { font-weight: 700; } .mp-sub-w { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mp-sub-d { color: var(--muted); white-space: nowrap; font-size: 11.5px; }
.mp-sub-p { grid-column: 1 / -1; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
/* Carl reply and its ⚙ on the right of the subject (Yanick, 2026-10-21) */
.mp-read { position: relative; }
.mp-read .olm-more { position: absolute; top: 12px; right: 16px; z-index: 2; }
.mp-read .mp-subject { padding-right: 230px; }
.mp-item.has-cx .mm-main { padding-left: 36px; } .mp-cx { left: 2px; }
/* the header of an open email takes only its own height (it stretched and left a big gap above the email) */
.mp-read .mp-meta { flex: none; }
/* the email being written, like Outlook (Yanick, 2026-10-21): actions on top at the right, one growing document */
.mc-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mc-doc { margin-top: 8px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: #222; padding: 4px 0; }
.mc-doc .mc-text { display: block; width: 100%; box-sizing: border-box; border: 0 !important; box-shadow: none !important; border-radius: 10px; resize: none; min-height: 150px; overflow: hidden; padding: 12px 14px !important; font: 14px/1.5 Segoe UI, Arial, sans-serif; background: #fff !important; color: #222; margin: 0; }
.mc-doc .mc-sig { margin: 0; padding: 0 6px; } .mc-doc .mc-sig-frame { border: 0; height: auto; min-height: 40px; }
.mc-doc .mc-old { margin: 0; border-top: 1px solid #e1dfdd; padding-top: 2px; position: relative; }
.mc-doc .mc-old-frame { border: 0; resize: none; height: 200px; border-radius: 0; }
.mc-oldreset { position: absolute; right: 8px; top: 6px; z-index: 1; border: 1px solid #e1dfdd; background: #fff; color: #605e5c; border-radius: 6px; font-size: 11.5px; padding: 2px 8px; cursor: pointer; opacity: .7; } .mc-oldreset:hover { opacity: 1; }
/* Pop out: the email in a big window over the page */
.mm-compose.mc-big { position: fixed; inset: 56px 4vw 20px 4vw; z-index: 1500; overflow: auto; margin: 0 !important; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.mm-compose.mc-big .mc-top { position: sticky; top: -10px; background: var(--surface); padding: 6px 0; z-index: 2; }
/* writing an answer in the reading pane, like Outlook: the email's own header (Reply, Reply all, Forward, Carl reply) is hidden */
.mp-read.composing > .mp-subject, .mp-read.composing > .mp-meta, .mp-read.composing .olm-more, .mp-read.composing > .mp-inl { display: none; }
.mp-read.composing > .mm-compose { margin-top: 10px; }
/* Outlook's layout: Pop Out and Discard on top, the big Send on the left of To, Cc and Subject */
.mc-top { justify-content: flex-start; gap: 4px; }
.mc-tb { border: 0; background: none; font: inherit; font-size: 13px; color: var(--text); padding: 4px 10px; border-radius: 6px; cursor: pointer; }
.mc-tb:hover { background: var(--surface-2); }
.mc-head { display: flex; gap: 10px; align-items: stretch; }
.mc-sendbig { flex: none; width: 74px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.mc-sendbig svg { width: 26px; height: 26px; fill: var(--accent); } .mc-sendbig:hover { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border-color: var(--accent); } .mc-sendbig:disabled { opacity: .6; cursor: default; }
.mc-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; } .mc-fields .mc-f { margin-top: 0 !important; }
.mc-doc .mc-sig-frame { min-height: 0; }
/* a reply does not carry the files of the email answered (Outlook's way): they are not shown while answering; a forward does carry them, so they stay */
.mp-read.composing:not(.fwd) > .mm-files { display: none; }
.mp-read.composing.fwd > .mm-files::before { content: "Forwarded with the email:"; font-size: 12px; color: var(--muted); align-self: center; margin-right: 4px; }

/* the answer as ONE editable email (Yanick, 2026-10-21) */
.mc-onedoc { padding: 0; } .mc-one { display: block; width: 100%; border: 0; min-height: 260px; background: #fff; border-radius: 10px; }

/* Account opening: the 4 approvals (Agent, Admin, Logistics, Sales) and the sales form */
.ar-steps { display: flex; align-items: center; gap: 0; flex-wrap: nowrap; }
.ar-step { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 5px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); white-space: nowrap; font-size: 12.5px; font-weight: 600; }
.ar-step i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff; flex: none; }
.ar-step small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.ar-step > span { line-height: 1.2; }
.ar-ok i { background: #1f8a4c; } .ar-ok { border-color: color-mix(in srgb, #1f8a4c 35%, var(--border)); }
.ar-no i { background: #d64545; } .ar-no { border-color: color-mix(in srgb, #d64545 40%, var(--border)); }
.ar-wait i { background: #f2b416; color: #5a4300; } .ar-wait { border-color: color-mix(in srgb, #f2b416 45%, var(--border)); }
.ar-line { width: 14px; height: 2px; background: var(--border); flex: none; }
.ar-tab td { vertical-align: middle; }
tr.ar-focus > td { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.ar-sales { max-width: 900px; margin: 4px 0 8px; grid-template-columns: repeat(3, minmax(150px, 1fr)); }
@media (max-width: 900px) { .ar-sales { grid-template-columns: repeat(2, minmax(130px, 1fr)); } }
.ar-sales-h, .ar-sales-b { grid-column: 1 / -1; }
.ar-sales-b { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ar-why { color: #d64545; }
.ar-tab tr.ar-row > td.ar-appr { max-width: none; min-width: 0; white-space: nowrap; } /* by class: the check box column (rowSelect) shifts the positions */
.ar-tab .ar-steps { width: max-content; }
.ar-na i { background: #9aa3ad; } .ar-na { color: var(--muted); }
.ar-tab tbody.ar-donehead td { padding: 10px 8px; background: var(--surface-2); }
tbody.ar-acc[hidden], tbody.ar-none[hidden] { display: none; }
/* Account opening: each account folds (▸ / ▾); folded = only its main line */
tbody.ar-shut > tr.ar-salesrow, tbody.ar-shut > tr.ar-hist { display: none; }
.ar-num { white-space: nowrap; }
.ar-tog { border: 0; background: none; cursor: pointer; font-size: 13px; color: var(--text-2); width: 22px; height: 22px; border-radius: 6px; margin-right: 4px; padding: 0; }
.ar-tog:hover { background: var(--surface-2); color: var(--text); }
.ar-tab tbody.ar-donehead td { padding: 12px 8px 6px; background: none; font-weight: 600; color: var(--text-2); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.ar-ok-msg { display: inline-block; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, #1f8a4c 12%, transparent); color: #1f7a3f; font-weight: 600; font-size: 12.5px; }
/* the ⚙ menu (2026-10-22): every line a pill, ▸ unfolds what it does */
.gear-menu { min-width: 300px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.gm-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 6px; }
.gear-menu button.gm-pill { display: inline-flex; align-items: center; gap: 8px; width: 100%; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.gear-menu button.gm-pill:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.gear-menu button.gm-pill:disabled { opacity: .6; cursor: default; }
.gear-menu button.gm-more { width: 28px; height: 28px; padding: 0; border-radius: 50%; text-align: center; color: var(--text-2); font-size: 12px; }
.gm-desc { grid-column: 1 / -1; font-size: 12px; color: var(--text-2); line-height: 1.4; padding: 2px 14px 6px; max-width: 300px; }
.gear-btn { position: relative; }
.gear-dot { position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; margin: 0; }
/* Organise the menu: the user's separator lines */
.me-sepline .me-head { gap: 10px; }
.me-sepdemo { flex: 1; border-top: 2px solid var(--border); min-width: 30px; }
/* Supplier invoices (2026-10-22) */
.si-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 4px 0 12px; }
.si-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; border-left: 4px solid var(--border); }
.si-tile span { font-size: 12px; color: var(--text-2); } .si-tile b { font-size: 22px; font-variant-numeric: tabular-nums; } .si-tile small { color: var(--muted); font-size: 12px; }
.si-tile.main { border-left-color: var(--accent); } .si-tile.a0 { border-left-color: #1f8a4c; } .si-tile.a30 { border-left-color: #f2b416; } .si-tile.a60 { border-left-color: #e8833a; } .si-tile.a90 { border-left-color: #d64545; }
.si-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.si-chip { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.si-chip b { margin-left: 4px; font-variant-numeric: tabular-nums; } .si-chip.on { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); font-weight: 600; }
.si-tab td { vertical-align: top; } .si-tab tr.si-head td { background: var(--surface-2); padding: 9px 8px; }
tbody.si-shut > tr.si-row { display: none; } tbody.si-sup[hidden] { display: none; }
.si-age { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.si-age.a0 { background: color-mix(in srgb, #1f8a4c 14%, transparent); color: #1f7a3f; } .si-age.a30 { background: color-mix(in srgb, #f2b416 22%, transparent); color: #8a6100; }
.si-age.a60 { background: color-mix(in srgb, #e8833a 20%, transparent); color: #a24f12; } .si-age.a90 { background: color-mix(in srgb, #d64545 16%, transparent); color: #b02a2a; }
.si-st { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid var(--border); }
.si-st.si-none { color: #b02a2a; border-color: color-mix(in srgb, #d64545 40%, var(--border)); } .si-st.si-tik { color: #8a6100; border-color: color-mix(in srgb, #f2b416 50%, var(--border)); }
.si-st.si-probable { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); } .si-st.si-qb { color: #1f7a3f; border-color: color-mix(in srgb, #1f8a4c 40%, var(--border)); }
.si-k { display: inline-block; min-width: 74px; font-size: 11px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .03em; }
.si-k.ok { color: #1f7a3f; } .si-k.prob { color: var(--accent); } .si-k.mail { color: #1d5f8a; }
.si-mail { margin-top: 4px; display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: #e3f0fa; color: #1d5f8a; white-space: nowrap; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .si-mail { background: #17344a; color: #9cc9ec; } }
:root[data-theme="dark"] .si-mail { background: #17344a; color: #9cc9ec; }
/* Supplier invoices: who the invoice is for, flat list by pickup date (2026-10-22) */
.si-role { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--text-2); }
.si-role.si-supplier { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.si-role.si-freight1, .si-role.si-freight2 { background: color-mix(in srgb, #8b5cf6 13%, transparent); color: #7c3aed; }
.si-role.si-bp { background: color-mix(in srgb, #9aa3ad 22%, transparent); color: var(--text-2); }
tr.si-row.si-out { display: none; } .si-gap { flex: 1; min-width: 10px; }
.si-issue { color: #b45309; font-weight: 500; }
[data-theme="dark"] .si-issue { color: #f59e0b; }
/* column menus like Excel (Supplier invoices, 2026-10-22) */
.si-th { display: inline-flex; align-items: center; gap: 4px; }
.si-colf { border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; font-size: 10px; width: 20px; height: 20px; border-radius: 6px; padding: 0; line-height: 1; }
.si-colf:hover { background: var(--surface); border-color: var(--border); color: var(--text); }
.si-colf.on { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.cr-cfsort { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.cr-cfsort button { text-align: left; border: 0; background: none; color: var(--text); font: inherit; font-size: 13px; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.cr-cfsort button:hover { background: var(--surface-2); }
.si-tab td.si-stc { min-width: 190px; max-width: none; white-space: nowrap; }
.si-tab td.si-det { min-width: 260px; max-width: none; }
.si-tab td.si-bpc { text-align: right; white-space: nowrap; width: 1%; vertical-align: top; }
/* the Bypass button always on the right edge of the screen, even when the table scrolls sideways (Yanick, 2026-10-22) */
.si-tab td.si-bpc, .si-tab thead th:last-child { position: sticky; right: 0; z-index: 1; }
.si-tab td.si-bpc { background: var(--surface); box-shadow: -8px 0 8px -8px rgba(0,0,0,.25); }
.si-tab thead th:last-child { background: var(--surface-2); z-index: 2; }

/* Supplier invoices: the mass edit (2026-10-22) */
.si-tab .si-ckc { width: 28px; text-align: center; padding-left: 6px; padding-right: 2px; }
.si-tab .si-ckc input { width: 16px; height: 16px; cursor: pointer; }
.si-mass { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); box-shadow: var(--shadow); }

/* Customer invoices: the paid mark (lib/custinv.js) */
.si-mail.ci-paid { background: #e3f4e8; color: #1f7a3f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .si-mail.ci-paid { background: #163a24; color: #8fd3a5; } }
:root[data-theme="dark"] .si-mail.ci-paid { background: #163a24; color: #8fd3a5; }

/* Supplier invoices: the SharePoint mark */
.si-k.sp { color: #7a5a12; }
.si-mail.si-spm { background: #fbf0d6; color: #7a5a12; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .si-mail.si-spm { background: #3d3115; color: #e7c97a; } :root:not([data-theme="light"]) .si-k.sp { color: #e7c97a; } }
:root[data-theme="dark"] .si-mail.si-spm { background: #3d3115; color: #e7c97a; }
:root[data-theme="dark"] .si-k.sp { color: #e7c97a; }

/* Customer invoices: the documentation status of the WS */
.ci-doc { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; white-space: nowrap; background: var(--chip, #eef0f3); color: var(--text-2); }
.ci-doc-completed { background: #e3f4e8; color: #1f7a3f; } .ci-doc-in-process { background: #e3f0fa; color: #1d5f8a; } .ci-doc-need-revision { background: #fde8e6; color: #b3261e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ci-doc-completed { background: #163a24; color: #8fd3a5; } :root:not([data-theme="light"]) .ci-doc-in-process { background: #17344a; color: #9cc9ec; } :root:not([data-theme="light"]) .ci-doc-need-revision { background: #4a1d1a; color: #f2a59e; } }
:root[data-theme="dark"] .ci-doc-completed { background: #163a24; color: #8fd3a5; } :root[data-theme="dark"] .ci-doc-in-process { background: #17344a; color: #9cc9ec; } :root[data-theme="dark"] .ci-doc-need-revision { background: #4a1d1a; color: #f2a59e; }

/* ⟳ beside the version: refresh the page where the user is (2026-10-23) */
.page-ref { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-left: 6px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: transparent; color: var(--text-2); cursor: pointer; }
.page-ref:hover { color: var(--text); background: var(--hover, rgba(127,127,127,.12)); }
.page-ref svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.page-ref.spin svg { animation: page-ref-spin .8s ease; }
@keyframes page-ref-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
/* the pages' own refresh buttons: hidden, the ⟳ beside the version presses them (Yanick, 2026-10-23) */
#drefresh, #myref, #rfref, #bkre, #crref, #cmref, #slref, #arref, #siref, #ciref { display: none !important; }

/* ⚙ Menu at the bottom of the left menu (2026-10-23) */
.side .side-gear { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border); position: static; }
.side-gear-btn { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px; border: 0; border-radius: 6px; background: none; color: var(--text-2); font: inherit; text-align: left; cursor: pointer; }
.side-gear-btn:hover { background: var(--surface-2); color: var(--text); }
.side-gear-ic { width: 18px; text-align: center; font-size: 15px; }
.side-gear-btn .gear-dot { margin-left: auto; position: static; }
.side .side-gear .gear-menu { position: fixed; top: auto; right: auto; z-index: 60; }
.apps-pop { right: auto; }
.me-fixed .me-head { opacity: .75; }

/* Supplier invoices: an invoice received by email but not sent on to admin@ */
.si-mail.si-noadm { background: #fde8e6; color: #b3261e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .si-mail.si-noadm { background: #4a1d1a; color: #f2a59e; } }
:root[data-theme="dark"] .si-mail.si-noadm { background: #4a1d1a; color: #f2a59e; }

/* Supplier invoices: in an email only / in SharePoint only (2026-10-23) */
.si-st.si-email { background: #e3f0fa; color: #1d5f8a; } .si-st.si-spdoc { background: #fbf0d6; color: #7a5a12; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .si-st.si-email { background: #17344a; color: #9cc9ec; } :root:not([data-theme="light"]) .si-st.si-spdoc { background: #3d3115; color: #e7c97a; } }
:root[data-theme="dark"] .si-st.si-email { background: #17344a; color: #9cc9ec; } :root[data-theme="dark"] .si-st.si-spdoc { background: #3d3115; color: #e7c97a; }

/* ⟳ turning while the page reads its data again (2026-10-23) */
.page-ref.busy svg { animation: page-ref-spin 1s linear infinite; }
.page-ref.busy { color: var(--accent); border-color: var(--accent); }

/* Supplier invoices: the pipeline under each invoice (2026-10-24) */
.si-tab tr.si-row td { border-bottom: 0; }
.si-tab tr.si-pipe td { padding: 0 8px 8px; border-top: 0; }
.si-tab tr.si-pipe.si-out, .si-tab tr.si-row.si-out + tr.si-pipe { display: none; }
.si-steps { display: flex; gap: 2px; flex-wrap: nowrap; }
.si-step { position: relative; flex: 0 0 auto; min-width: 86px; padding: 1px 12px 1px 14px; font-size: 10.5px; line-height: 16px; font-weight: 600; text-align: center; white-space: nowrap; color: var(--muted); background: var(--surface-2); clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%, 7px 50%); cursor: default; }
.si-step:first-child { clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%); padding-left: 10px; }
.si-step.on { color: #fff; }
.si-step-notif.on { background: #3a86c8; } .si-step-admin.on { background: #0b9bc4; } .si-step-sp.on { background: #2e8b62; }
.si-step-ckl.on { background: #0aa06e; } .si-step-pay.on { background: #c9740a; } .si-step-ws.on { background: #c08a00; }
.si-step-qb.on { background: #1f7a3f; } .si-step-koz { margin-left: 10px; } .si-step-koz.on { background: #6b4fc8; }

/* Supplier invoices: the pipelines folded (switch Pipelines off) */
.si-nopipe tr.si-pipe { display: none; }
.si-nopipe .si-tab tr.si-row td { border-bottom: 1px solid var(--border); }

/* pipeline steps that open something: a pointer and a light underline on hover, the colours unchanged */
.si-step.go { cursor: pointer; }
.si-step.go:hover { text-decoration: underline; filter: brightness(1.12); }

/* Supplier invoices: the Details text wraps so that the pinned Bypass / Undo column never hides it (2026-10-24) */
.si-tab td.si-det { max-width: 560px; white-space: normal; overflow-wrap: anywhere; }
.si-tab td.si-bpc .btn { padding-left: 10px; padding-right: 10px; }

/* ⚙ Settings pages (2026-10-24) */
.menu-edit.menu-page { position: static; display: block; max-width: none; max-height: none; width: auto; margin: 0; border: 0; padding: 0; background: none; box-shadow: none; }
.apps-page { max-width: 760px; }
.apps-page ul { list-style: none; margin: 0; padding: 0; }
.cs-nav .si-chips input[type=date] { padding: 4px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; }
.cs-tab td { vertical-align: top; }
.cs-who { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-align: left; }
.cs-who:hover { text-decoration: underline; }
.cs-barc { width: 120px; }
.cs-bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; } .cs-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.cs-q { max-width: 420px; overflow-wrap: anywhere; }
.cs-days { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding-top: 6px; }
.cs-day { flex: 1 1 0; min-width: 6px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.cs-day i { display: block; width: 100%; background: var(--accent); border-radius: 3px 3px 0 0; }
.cs-day span { font-size: 9px; color: var(--muted); margin-top: 2px; }
td.nowrap { white-space: nowrap; }

/* Receipts: the Visa purchases waiting for their receipt (lib/visabank.js, 2026-10-24) */
.rc-missing { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #fde8e6; color: #b3261e; white-space: nowrap; }
.rc-visa { font-size: 11px; color: var(--ok, #1f7a3f); white-space: nowrap; }
tr.rc-wait td { background: color-mix(in srgb, #d64545 5%, transparent); }
.rc-nopic { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 220px; font-size: 40px; color: var(--muted); border: 2px dashed var(--border); border-radius: 12px; }
.rc-nopic br + * { font-size: 14px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rc-missing { background: #4a1d1a; color: #f2a59e; } }
:root[data-theme="dark"] .rc-missing { background: #4a1d1a; color: #f2a59e; }

/* Receipts: a receipt that came by email (Carl, receipts@) and is still to check: clearly yellow (Yanick, 2026-10-24) */
tr.rc-newmail td { background: rgba(240,190,40,.28); }
tr.rc-newmail td:first-child { box-shadow: inset 4px 0 0 #e0a800; }

/* Receipts › Where to find (lib/rcfind.js) */
.rc-wheredlg { width: min(980px, 96vw); } .rw-tbl input, .rw-tbl select { width: 100%; min-width: 110px; font: inherit; } .rw-tbl td { padding: 4px; } .rc-wheredlg .actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }

/* Receipts: approved, original invoice still to download (red N°) */
.rc-ref.rc-dl { color: var(--danger, #c62828); font-weight: 700; } .rc-dlnote { color: var(--danger, #c62828); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; }

/* column menu: Exclude what I search (Yanick, 2026-10-24) */
.cr-cfex { display: flex; align-items: center; gap: 6px; font-size: 12px; margin: 6px 0 2px; cursor: pointer; } .cr-cfexon .cr-cfq { border-color: var(--danger, #c62828); } .cr-cfexon [data-ok] { background: var(--danger, #c62828); border-color: var(--danger, #c62828); }
.rc-th + .si-colf { margin-left: 2px; vertical-align: middle; }

/* Receipts: the receipt opened from its line; the status Personal */
.rc-dls { display: flex; flex-direction: column; gap: 10px; max-height: 65vh; overflow: auto; } .rc-dlrow { border: 1px solid var(--border, #ddd); border-radius: 8px; padding: 8px 10px; } .rc-dlname { font-weight: 600; word-break: break-all; } .rc-dlwhat { margin-top: 4px; line-height: 2; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rc-visacol { width: 1%; padding-left: 2px !important; padding-right: 2px !important; text-align: center; white-space: nowrap; }
.rc-qblogo { height: 14px; width: 14px; vertical-align: middle; } .rc-visalogo + .rc-qblogo { margin-left: 5px; }
.rc-visalogo { height: 8.4px; width: auto; vertical-align: middle; padding: 2px 3px; background: #fff; border: 1px solid var(--border, #ddd); border-radius: 3px; box-sizing: content-box; }
.rc-attline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; }
.rc-orig { text-decoration: none; margin-left: 2px; font-size: 13px; } .rc-orig:hover { filter: brightness(1.3); }
.rc-att { text-decoration: none; margin-left: 4px; font-size: 13px; } .rc-att:hover { filter: brightness(1.3); }
.rc-st4 { color: var(--muted); font-style: italic; }

.rc-kind { margin-left: 2px; font-size: 12px; }

/* Receipts: the kind of receipt, a coloured label that opens it (Yanick, 2026-10-24) */
.rc-att .rc-kind { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 6px; font-size: 11px; font-weight: 700; line-height: 1.5; white-space: nowrap; border: 1px solid; }
.rc-kpdf { color: #c62828; background: rgba(198,40,40,.12); border-color: rgba(198,40,40,.45); }
.rc-kimg { color: #2e7d32; background: rgba(46,125,50,.12); border-color: rgba(46,125,50,.45); }
.rc-kmail { color: #1565c0; background: rgba(21,101,192,.12); border-color: rgba(21,101,192,.45); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rc-kpdf { color: #ff8a80; } :root:not([data-theme="light"]) .rc-kimg { color: #81c784; } :root:not([data-theme="light"]) .rc-kmail { color: #82b1ff; } }
:root[data-theme="dark"] .rc-kpdf { color: #ff8a80; } :root[data-theme="dark"] .rc-kimg { color: #81c784; } :root[data-theme="dark"] .rc-kmail { color: #82b1ff; }

/* Receipts: the receipt opened inside the hub (Esc or ✕ closes it) */
dialog.rc-viewer { width: min(1000px, 96vw); max-width: none; height: 92vh; padding: 10px 12px; display: flex; flex-direction: column; }
dialog.rc-viewer:not([open]) { display: none; }
.rc-viewer .lb-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .rc-viewer .lb-bar h2 { margin: 0; font-size: 17px; }
.rc-viewbody { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 8px; overflow: auto; }
.rc-viewbody iframe { width: 100%; height: 100%; border: 0; background: #fff; } .rc-viewbody img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* two-step sign-in: the QR code to scan (white, so phones read it in the dark theme too) */
.ts-qr { margin: 8px 0; } .ts-qr svg { display: block; width: 200px; height: 200px; background: #fff; padding: 6px; border-radius: 8px; border: 1px solid var(--border); }

/* CRM emails */
.cm-bar { flex-wrap: wrap; gap: 8px; } .cm-show .btn.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.cm-tbl td { vertical-align: top; } .cm-det { margin-top: 6px; padding: 8px 10px; background: var(--surface-2); border-radius: 8px; } .cm-text { margin-top: 6px; white-space: pre-wrap; max-height: 320px; overflow: auto; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-align: left; font: inherit; }

.me-all { display: block; margin: 4px 0 10px; padding: 8px 12px; border: 1px solid var(--accent); border-radius: 10px; }

/* Loading Pictures */
.lp-tbl { width: 100%; } .lp-tbl td { vertical-align: middle; }
.lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.lp-tile { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); cursor: grab; } .lp-tile.out { opacity: .6; cursor: default; } .lp-tile.drag { opacity: .4; } .lp-tile.over { outline: 3px solid var(--accent); }
.lp-tile img { display: block; width: 100%; height: 130px; object-fit: cover; background: #222; } .lp-cap { padding: 6px 8px 2px; font-size: 12.5px; } .lp-acts { display: flex; gap: 4px; padding: 4px 8px 8px; }
.lp-outh { margin: 16px 0 8px; font-size: 14px; } .lp-form, .lp-mail { max-width: 760px; }
.lp-tile { position: relative; } .lp-tag { position: absolute; top: 6px; right: 6px; min-width: 24px; padding: 2px 7px; border-radius: 12px; background: rgba(0,0,0,.72); color: #fff; font-weight: 700; font-size: 13px; text-align: center; z-index: 1; }
.lp-back { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 14px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; } .lp-back input { flex: 1 1 240px; min-width: 0; } .lp-back > div, .lp-back > p { flex-basis: 100%; margin: 0; }
/* Fumigation (2026-10-27): statuses are words, no colours (Yanick); a return requested is marked by a left bar and bold text */
.fu-tab td { vertical-align: top; } .fu-sel { font: inherit; padding: 3px 6px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); }
.fu-notec { min-width: 220px; } .fu-note { width: 100%; min-width: 200px; font: inherit; font-size: 13px; padding: 4px 6px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); resize: vertical; }
.fu-ret { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; white-space: nowrap; }
.fu-tab textarea.fu-note { min-height: 30px; height: 30px; } .fu-tab td { padding-top: 6px; padding-bottom: 6px; }
/* Fumigation status colours like his Excel (Yanick, 2026-10-27: words alone were confusing): yellow Unknown, green Fumigated, blue Not fumigated, pink Partial */
.fu-sel.fu-unknown, .fu-st.fu-unknown { background: #fff59d; color: #3a3300; border-color: #e6d640; } .fu-sel.fu-fumigated, .fu-st.fu-fumigated { background: #c5e8b7; color: #1d3d12; border-color: #8cc874; }
.fu-sel.fu-not, .fu-st.fu-not { background: #bcd8f2; color: #12324f; border-color: #7fb0dc; } .fu-sel.fu-partial, .fu-st.fu-partial { background: #f4c6ec; color: #4d1543; border-color: #dc8fcf; }
.fu-st { display: inline-block; padding: 3px 8px; border-radius: 8px; border: 1px solid; font-weight: 600; } .fu-sel option { background: var(--surface); color: var(--text); }
.si-tile.fu-t-unknown { border-left-color: #e6d640; background: #fff59d33; } .si-tile.fu-t-fumigated { border-left-color: #8cc874; background: #c5e8b733; } .si-tile.fu-t-not { border-left-color: #7fb0dc; background: #bcd8f233; } .si-tile.fu-t-partial { border-left-color: #dc8fcf; background: #f4c6ec33; }

/* rows that can be selected (rowSelect in app.js, Zoho Creator style): the check box shows under the mouse, the Edit menu once one is ticked */
.rs-tbl .rs-chk { width: 30px; text-align: center; padding-left: 6px; padding-right: 0; }
.rs-tbl .rs-chk input { opacity: 0; cursor: pointer; width: 16px; height: 16px; margin: 0; transition: opacity .12s; }
.rs-tbl tr:hover .rs-chk input, .rs-tbl.rs-on .rs-chk input, .rs-tbl .rs-chk input:focus-visible { opacity: 1; }
.rs-tbl tr.rs-sel td { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.rs-bar { display: none; align-items: center; gap: 10px; padding: 6px 2px 8px; }
.rs-bar.on { display: flex; }
.rs-menu { position: relative; display: inline-block; }
.rs-list { position: absolute; top: 100%; left: 0; z-index: 30; margin-top: 4px; min-width: 150px; display: flex; flex-direction: column; padding: 4px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.rs-list[hidden] { display: none; }
.rs-list button { text-align: left; background: none; border: 0; padding: 7px 10px; border-radius: 6px; cursor: pointer; color: var(--text); font: inherit; }
.rs-list button:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.rs-list button.rs-red { color: var(--danger); }

/* Time off (2026-10-28): kinds' colours, status pills, team calendar grid */
.to-t-vacation { --to-c: var(--cat-1, #2a78d6); } .to-t-sick { --to-c: var(--cat-2, #eb6834); } .to-t-personal { --to-c: var(--cat-7, #4a3aa7); } .to-t-other { --to-c: var(--cat-3, #1baf7a); }
.to-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--to-c, var(--muted)); margin-right: 6px; vertical-align: -1px; }
.to-dot.to-pend { background: repeating-linear-gradient(135deg, var(--muted) 0 2px, transparent 2px 4px); border: 1px solid var(--muted); }
.to-dot.to-holk { background: color-mix(in srgb, var(--muted) 35%, transparent); }
.to-tile { border-left-color: var(--to-c); }
.to-st { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--text-2); }
.to-st.to-pending { background: color-mix(in srgb, var(--orange) 16%, transparent); color: color-mix(in srgb, var(--orange) 80%, var(--text)); }
.to-st.to-approved { background: color-mix(in srgb, var(--ok) 15%, transparent); color: color-mix(in srgb, var(--ok) 80%, var(--text)); }
.to-st.to-refused { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.to-note { white-space: normal; max-width: 320px; }
.to-neg { color: var(--danger); font-weight: 700; }
.to-warn { color: color-mix(in srgb, var(--orange) 85%, var(--text)); font-weight: 600; white-space: normal; }
.to-count { margin: 0; font-size: 13px; }
.to-hols { display: flex; flex-wrap: wrap; gap: 8px; } .to-hol { background: var(--surface-2); border-radius: 10px; padding: 5px 10px; font-size: 13px; }
.to-month { min-width: 130px; text-align: center; } .to-legend { gap: 12px; } .to-key { font-size: 12.5px; color: var(--text-2); }
.to-cal { width: auto; } .to-cal th, .to-cal td { padding: 0; } .to-cal .to-pn { padding: 6px 12px; position: sticky; left: 0; background: var(--surface); z-index: 2; min-width: 170px; }
.to-cal thead .to-pn { background: var(--surface-2); z-index: 3; } .to-cal .num { padding: 6px 10px; }
.to-cal th.to-d { text-align: center; width: 26px; min-width: 26px; font-size: 11px; padding: 4px 0; letter-spacing: 0; } .to-cal th.to-d span { display: block; font-weight: 500; color: var(--muted); }
.to-cal td.to-c { height: 30px; border-left: 1px solid var(--grid, var(--border)); position: relative; }
.to-cal .to-we { background: color-mix(in srgb, var(--surface-2) 70%, transparent); } .to-cal .to-today { box-shadow: inset 0 0 0 2px var(--accent); }
.to-cal td.to-hold { background: color-mix(in srgb, var(--muted) 30%, transparent); }
.to-cal td[class*="to-t-"] { background: var(--to-c); } .to-cal td.to-pend { background: repeating-linear-gradient(135deg, var(--to-c) 0 3px, color-mix(in srgb, var(--to-c) 25%, transparent) 3px 7px); }
.to-cal td.to-half { background: linear-gradient(90deg, var(--to-c) 50%, transparent 50%); }
.to-cal tbody tr:hover td.to-pn { background: var(--surface-2); }
.to-num { width: 80px; text-align: right; }
.to-dlg { width: min(980px, 96vw); } .to-dlg .si-chips { margin: 8px 0; } .to-addh { margin: 8px 0 12px; } .to-off td { opacity: .45; text-decoration: line-through; }

/* Time off: a holiday during a vacation, paid as an extra day (2026-10-28) */
.to-paid { display: inline-block; font-size: 12px; font-weight: 600; color: #a16207; background: color-mix(in srgb, #eab308 18%, transparent); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.to-dot.to-paidk { background: #eab308; } .to-paidt { border-left-color: #eab308; }
.to-cal td.to-paidc { background: color-mix(in srgb, #eab308 55%, transparent); box-shadow: inset 0 0 0 2px #eab308; }
:root:not([data-theme="light"]) .to-paid { color: #facc15; } :root[data-theme="dark"] .to-paid { color: #facc15; }

/* Time off ⚙ Settings: a page of its own with the left menu (Yanick, 2026-10-28) */
.to-set .si-chips { margin: 4px 0 12px; } .to-set .hub-table { font-size: 13.5px; }

/* Time off settings: the people list and one person's page (2026-10-28) */
.to-name { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--accent); cursor: pointer; } .to-name:hover { text-decoration: underline; }
.to-pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 14px; align-items: start; } .to-pgrid .hub-card { margin-bottom: 0; }
.to-set > .hub-card, .to-pgrid { margin-bottom: 14px; }
.to-set .hub-form { border: 0; box-shadow: none; padding: 0; background: none; max-width: none; margin-bottom: 10px; }
.to-bal .to-left td { font-weight: 700; border-top: 2px solid var(--border); }
.to-set .si-chips label { display: inline-flex; align-items: center; gap: 6px; }

/* Time off: the period of a balance (Québec vacation May–April, 2026-10-28) */
.to-per { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); }

/* Time off: the rules box across the whole page, larger (Yanick, 2026-10-28) */
.to-pgrid .to-wide { grid-column: 1 / -1; }
.to-rules .hub-card-head h3 { font-size: 17px; } .to-rules .hub-table { font-size: 14.5px; } .to-rules .hub-table td { padding: 11px 14px; }
.to-rules .hub-form { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } .to-rules .hub-form input, .to-rules .hub-form select { font-size: 15px; padding: 9px 12px; }

/* Time off: the small 12-month vacation calendar (settings) and the Team calendar as a timeline (2026-10-28) */
.ty { display: grid; grid-template-columns: repeat(6, auto); gap: 8px 10px; justify-content: start; }
.ty-m { display: flex; flex-direction: column; gap: 3px; } .ty-ml { font-size: 10px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ty-g { display: grid; grid-template-columns: repeat(7, 7px); gap: 2px; }
.ty-d, .ty-x { width: 7px; height: 7px; border-radius: 2px; display: block; font-style: normal; }
.ty-d { background: color-mix(in srgb, var(--text) 7%, transparent); } .ty-d.ty-we { background: color-mix(in srgb, var(--text) 3%, transparent); }
.ty-d.ty-done { background: var(--cat-1, #2a78d6); } .ty-d.ty-coming { background: color-mix(in srgb, var(--cat-1, #2a78d6) 35%, transparent); box-shadow: inset 0 0 0 1.5px var(--cat-1, #2a78d6); }
.ty-d.ty-wait { background: repeating-linear-gradient(135deg, var(--orange) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1px var(--orange); }
.ty-d.ty-hol { background: color-mix(in srgb, var(--muted) 45%, transparent); } .ty-d.ty-paid { background: #eab308; }
.ty-d.ty-now { outline: 1.5px solid var(--text); outline-offset: 1px; }
.ty-big { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; } .ty-big .ty-ml { font-size: 12px; color: var(--text-2); }
.ty-big .ty-g { grid-template-columns: repeat(7, 1fr); gap: 3px; } .ty-big .ty-d, .ty-big .ty-x { width: auto; height: 22px; border-radius: 6px; font-size: 10.5px; display: flex; align-items: center; justify-content: center; color: var(--text-2); }
.ty-big .ty-d.ty-done, .ty-big .ty-d.ty-paid { color: #fff; font-weight: 600; } .ty-big .ty-d.ty-coming { color: var(--text); font-weight: 600; }
.ty-legend { margin: 2px 0 10px; } .ty-legend .ty-d { display: inline-block; margin-right: 5px; vertical-align: -1px; width: 9px; height: 9px; }
.to-ppl td.ty-cell { padding-top: 8px; padding-bottom: 8px; } .to-ppl td { vertical-align: middle; }
.tc-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin: 4px 0 14px; }
.tc-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; flex: 1 1 360px; }
.tc-today-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 8px 14px; display: flex; flex-direction: column; min-width: 150px; }
.tc-today-card span { font-size: 11.5px; color: var(--muted); } .tc-today-card b { font-size: 14px; } .tc-wait-card b { color: color-mix(in srgb, var(--orange) 85%, var(--text)); }
.tc-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius, 16px); box-shadow: var(--shadow); }
.tc { min-width: calc(230px + var(--n) * 26px + 60px); }
.tc-head, .tc-row { display: grid; grid-template-columns: 230px 1fr 60px; align-items: center; }
.tc-head { position: sticky; top: 0; z-index: 3; background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 0 6px; }
.tc-days, .tc-track { display: grid; grid-template-columns: repeat(var(--n), minmax(26px, 1fr)); }
.tc-dh { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 11px; } .tc-dh i { font-style: normal; color: var(--muted); font-size: 10px; } .tc-dh b { font-weight: 600; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 999px; }
.tc-dh.tc-we b { color: var(--muted); font-weight: 500; } .tc-dh.tc-now b { background: var(--accent); color: var(--accent-ink); }
.tc-nm { position: sticky; left: 0; z-index: 2; background: var(--surface); display: flex; align-items: center; gap: 10px; padding: 0 14px; min-width: 0; }
.tc-av { --h: 210; flex: none; width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; color: hsl(var(--h) 55% 32%); background: hsl(var(--h) 70% 90%); }
:root:not([data-theme="light"]) .tc-av { color: hsl(var(--h) 70% 85%); background: hsl(var(--h) 35% 26%); } :root[data-theme="dark"] .tc-av { color: hsl(var(--h) 70% 85%); background: hsl(var(--h) 35% 26%); }
.tc-who { display: flex; flex-direction: column; min-width: 0; } .tc-who b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tc-who small { font-size: 11.5px; color: var(--muted); }
.tc-row { min-height: 50px; border-bottom: 1px solid var(--grid, var(--border)); } .tc-row:last-child { border-bottom: 0; }
.tc-row:hover, .tc-row:hover .tc-nm { background: color-mix(in srgb, var(--accent) 4%, var(--surface)); }
.tc-track { position: relative; height: 50px; align-items: center; }
.tc-cell { grid-row: 1; align-self: stretch; } .tc-cell.tc-we { background: color-mix(in srgb, var(--text) 3.5%, transparent); } .tc-cell.tc-hol { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--muted) 22%, transparent) 0 4px, transparent 4px 8px); }
.tc-cell.tc-nowc { box-shadow: inset 2px 0 0 var(--accent), inset -2px 0 0 var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.tc-bar { grid-row: 1; z-index: 1; height: 28px; margin: 0 2px; border-radius: 999px; background: var(--to-c); color: #fff; display: flex; align-items: center; gap: 6px; padding: 0 10px; overflow: hidden; white-space: nowrap; font-size: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.12); cursor: default; }
.tc-bar b { font-weight: 600; } .tc-bar small { opacity: .85; font-size: 11px; }
.tc-bar.tc-wait { background: repeating-linear-gradient(135deg, var(--to-c) 0 6px, color-mix(in srgb, var(--to-c) 55%, var(--surface)) 6px 12px); color: #fff; }
.tc-bar.tc-half { height: 16px; } .tc-bar.tc-cut-l { border-top-left-radius: 4px; border-bottom-left-radius: 4px; margin-left: 0; } .tc-bar.tc-cut-r { border-top-right-radius: 4px; border-bottom-right-radius: 4px; margin-right: 0; }
.tc-paid { grid-row: 1; z-index: 2; justify-self: center; align-self: start; margin-top: 2px; font-size: 11px; color: #eab308; text-shadow: 0 0 2px var(--surface); }
.tc-tot { text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }

/* Time off: record time off for a person on their settings page (2026-10-28) */
.to-rec { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } .to-rec .hub-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }

/* Time off: "Add Vacation Manually" folds (2026-10-28) */
details.to-fold > summary { cursor: pointer; list-style: none; margin-bottom: 0; } details.to-fold > summary::-webkit-details-marker { display: none; }
details.to-fold > summary h3::before { content: '▸'; display: inline-block; margin-right: 8px; color: var(--muted); transition: transform .15s; } details.to-fold[open] > summary h3::before { transform: rotate(90deg); }
details.to-fold[open] > summary { margin-bottom: 10px; }

/* Time off: the year's balance on top of the person page, across the page (2026-10-28) */
.to-baltop .hub-table { font-size: 14px; } .to-baltop .hub-table td, .to-baltop .hub-table th { padding: 9px 16px; } .to-baltop .hub-table td:first-child { width: 40%; }

/* Time off settings: compact boxes (Yanick, 2026-10-28: "all boxes are real big, less big from top to bottom") */
.to-set .hub-card { padding: 10px 14px; margin-bottom: 10px; } .to-set .hub-card-head { margin-bottom: 6px; } .to-set .hub-card-head h3, .to-rules .hub-card-head h3 { font-size: 14.5px; }
.to-set .hub-table, .to-rules .hub-table, .to-baltop .hub-table { font-size: 13px; }
.to-set .hub-table td, .to-set .hub-table th, .to-rules .hub-table td, .to-baltop .hub-table td, .to-baltop .hub-table th { padding: 5px 10px; }
.to-set .hub-form, .to-rules .hub-form { gap: 6px 12px; margin-bottom: 8px; } .to-set .hub-form > label { gap: 3px; font-size: 12px; }
.to-set .hub-form input, .to-set .hub-form select, .to-rules .hub-form input, .to-rules .hub-form select { font-size: 13px; padding: 5px 9px; min-height: 0; height: 32px; }
.to-set .hub-form-actions .btn { padding-top: 5px; padding-bottom: 5px; }
.to-pgrid { gap: 10px; } .to-set .ty-big { gap: 10px; } .to-set .ty-big .ty-d, .to-set .ty-big .ty-x { height: 17px; font-size: 10px; border-radius: 5px; } .to-set .ty-big .ty-g { gap: 2px; }
.to-set .si-chips { margin: 2px 0 8px; } .to-set .bar { margin-bottom: 6px; }

/* Time off: the year's balance sideways (2026-10-28) */
.to-balh th { white-space: nowrap; vertical-align: bottom; } .to-balh td:first-child { width: auto; white-space: nowrap; }
.to-balh .to-lc { font-weight: 700; background: color-mix(in srgb, var(--accent) 7%, transparent); } .to-balh td.to-lc { font-size: 14px; }

/* Time off: the rule being edited (2026-10-28) */
.to-rules tr.to-editing td { background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* Admin › Internal users: the team column (2026-10-28) */
input.p-team { min-width: 110px; width: 130px; }

/* Team calendar: Month / Year switch, team picker, the Year view (2026-10-28) */
.tc-seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 2px; }
.tc-seg button { border: 0; background: none; padding: 5px 14px; border-radius: 999px; font: inherit; font-size: 13px; color: var(--text-2); cursor: pointer; } .tc-seg button.on { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.tc-teamsel { width: auto; min-width: 140px; }
.tc-clash b { color: var(--danger); }
.ty-year { min-width: 1100px; }
.ty-row { display: grid; grid-template-columns: 230px 1fr 210px; align-items: center; border-bottom: 1px solid var(--grid, var(--border)); }
.ty-row.tc-row { min-height: 44px; } .ty-headrow { position: sticky; top: 0; z-index: 3; background: var(--surface); height: 34px; } .ty-covrow { height: 30px; background: color-mix(in srgb, var(--surface-2) 50%, var(--surface)); } .ty-covrow .tc-nm { background: transparent; }
.ty-track { position: relative; height: 44px; } .ty-months, .ty-covtrack { height: 100%; }
.ty-sep { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--grid, var(--border)); }
.ty-today { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--accent); z-index: 2; opacity: .8; }
.ty-mh { position: absolute; top: 0; bottom: 0; border: 0; background: none; font: inherit; font-size: 11.5px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .03em; cursor: pointer; border-radius: 6px; }
.ty-mh:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--accent); }
.ty-cov { position: absolute; top: 8px; bottom: 8px; border-radius: 2px; } .ty-c1 { background: color-mix(in srgb, var(--orange) 70%, transparent); } .ty-c2 { background: var(--danger); }
.to-dot.ty-k1 { background: color-mix(in srgb, var(--orange) 70%, transparent); } .to-dot.ty-k2 { background: var(--danger); }
.ty-holm { position: absolute; top: 12px; bottom: 12px; background: color-mix(in srgb, var(--muted) 40%, transparent); border-radius: 2px; }
.ty-bar { position: absolute; top: 11px; height: 22px; min-width: 4px; border-radius: 999px; background: var(--to-c); z-index: 1; color: #fff; font-size: 10.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.ty-bar.tc-wait { background: repeating-linear-gradient(135deg, var(--to-c) 0 5px, color-mix(in srgb, var(--to-c) 50%, var(--surface)) 5px 10px); } .ty-bar.ty-past { opacity: .55; }
.ty-sum { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; padding: 0 8px; } .ty-sumh span { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.ty-sum .ty-left { font-weight: 700; } .ty-sum .ty-none { grid-column: 1 / -1; font-size: 12px; }

/* Time off person page: Rules and Days in one card, the rule locked until Edit (2026-10-28) */
.to-rules .to-sub { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 12px 0 6px; padding-top: 10px; border-top: 1px solid var(--grid, var(--border)); }
.to-rules .to-sub:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.to-rform input:disabled, .to-rform select:disabled { opacity: 1; color: var(--text); background: var(--surface-2); border-color: transparent; cursor: default; }
.to-rform.to-open input, .to-rform.to-open select { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.to-addf { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } .to-addf .to-w2 { grid-column: span 2; } .to-addf [hidden] { display: none !important; }
.to-addf .hub-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.to-hist { margin: 4px 0 6px; } .to-hist summary { cursor: pointer; } .to-hist[open] summary { margin-bottom: 6px; }

/* Time off settings: the calendars' switch (2026-10-28) */
.to-cal-h { display: inline-flex; align-items: center; gap: 14px; } .to-calsw { font-size: 12.5px; }
.to-set .si-chips .tc-legend { flex: 1; }

/* Time off person page: 6 + 6 months with the days of the week, the person picker (2026-10-28) */
.to-set .ty-big { grid-template-columns: repeat(6, minmax(150px, 1fr)); }
.ty-big .ty-wd { font-style: normal; font-size: 10px; font-weight: 700; color: var(--muted); text-align: center; height: 14px; line-height: 14px; } .ty-big .ty-wd.ty-we { opacity: .6; }
.to-pick { position: relative; } .to-pickb { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 2px 8px 2px 0; border-radius: 10px; cursor: pointer; color: inherit; font: inherit; }
.to-pickb h1 { margin: 0; } .to-pickb:hover { background: var(--surface-2); } .to-caret { font-size: 14px; color: var(--muted); }
.to-pickm { position: absolute; top: calc(100% + 6px); left: 0; z-index: 50; width: 320px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.35); padding: 8px; }
.to-pickm input { width: 100%; margin-bottom: 6px; } .to-pickl { max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; }
.to-picko { display: flex; justify-content: space-between; align-items: center; gap: 8px; text-align: left; background: none; border: 0; padding: 7px 10px; border-radius: 8px; font: inherit; font-size: 13.5px; color: var(--text); cursor: pointer; }
.to-picko:hover { background: var(--surface-2); } .to-picko.on { background: color-mix(in srgb, var(--accent) 12%, transparent); } .to-picko b { font-weight: 600; } .to-pickn { padding: 6px 10px; margin: 0; }

/* 12-month calendar: weekends light yellow; days picked for the Add line (2026-10-29) */
.ty-d.ty-we, .to-set .ty-big .ty-d.ty-we { background: color-mix(in srgb, #facc15 12%, transparent); } .ty-big .ty-wd.ty-we { color: #ca8a04; opacity: 1; }
.ty-pickable .ty-d { cursor: pointer; } .ty-pickable .ty-d:hover { outline: 1.5px solid var(--accent); outline-offset: 0; }
.ty-big .ty-d.ty-sel { background: var(--accent); color: var(--accent-ink); font-weight: 700; }

/* Time off person page: Edit on Current Status opens the saved rules and the unused vacation (2026-10-29) */
.to-head-l { justify-content: flex-start; gap: 12px; }
.to-panel { margin-top: 12px; padding-top: 4px; border-top: 1px solid var(--grid, var(--border)); }
.to-panel .to-sub { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 12px 0 6px; }
.to-subrow { display: flex; align-items: center; justify-content: space-between; }
.to-panel .hub-form { border: 0; box-shadow: none; padding: 0; background: none; max-width: none; margin-bottom: 8px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.to-panel tr.to-editing td { background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* Time off calendar: picking days (2026-10-29) */
.ty-pickable { user-select: none; } .to-count .btn { margin-left: 6px; }

/* A holiday picked as a vacation day (paid extra): blue like the other vacation days, its number orange (2026-10-29) */
.ty-d.ty-paid, .ty-big .ty-d.ty-paid { background: var(--cat-1, #2a78d6); color: #f59e0b !important; font-weight: 800; }
.ty-legend .ty-d.ty-paid { box-shadow: inset 0 0 0 2px #f59e0b; }
.to-gap { height: 6px; }

/* 12-month calendar: a holiday not picked is orange (Yanick, 2026-10-29); picked = blue with the number orange */
.ty-d.ty-hol, .ty-big .ty-d.ty-hol, .to-set .ty-big .ty-d.ty-hol { background: #f59e0b; color: #fff; font-weight: 700; }

/* 12-month calendar: a holiday picked in the calendar turns blue with its number orange, like a paid one (2026-10-29) */
.ty-big .ty-d.ty-hol.ty-sel, .to-set .ty-big .ty-d.ty-hol.ty-sel { background: var(--cat-1, #2a78d6); color: #f59e0b; font-weight: 800; }
.ty-big .ty-d.ty-sel:not(.ty-hol) { background: var(--accent); color: var(--accent-ink); }

/* Admin › People (2026-10-29) */
.ph-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 22px; }
.ph-sec .to-sub { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 8px; }
.ph-f { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--grid, var(--border)); font-size: 13px; } .ph-f span { color: var(--text-2); } .ph-f b { font-weight: 600; text-align: right; }
.ph-form { border: 0; box-shadow: none; padding: 0; background: none; max-width: none; grid-template-columns: 1fr; gap: 8px; }
.ph-acts { margin-top: 10px; } .ph-self { font-weight: 600; color: color-mix(in srgb, var(--orange) 85%, var(--text)); }
.ph-chips { display: flex; flex-wrap: wrap; gap: 8px; } .ph-chip { background: var(--surface-2); border-radius: 10px; padding: 5px 10px; font-size: 13px; }
/* the self-approved requests to review */
.to-review { border-left: 4px solid var(--orange); }
/* ⚙ Settings as a section of the left menu (2026-10-29) */
.side .side-group.side-gear { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border); }
.side-items .side-dot { margin-left: auto; position: static; } .side-items .side-badge { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--text-2); }

/* Admin › People: a person not tracked (2026-10-29) */
.ph-untr { margin-left: 6px; font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 0 7px; }
.ph-track { margin: 4px 0; font-size: 13px; }

/* TripIt: the item number (103-1, 103-2...) left of its icon (2026-10-29) */
.tp-no { flex: none; margin-top: 2px; font-size: 11px; font-weight: 700; color: #fff; background: #1f6f43; border-radius: 999px; padding: 1px 7px; white-space: nowrap; }

/* phone QR windows: the short code to type on an iPhone (2026-10-29) */
.ph-code { font: 700 20px ui-monospace, Consolas, monospace; letter-spacing: .12em; background: rgba(127,127,127,.16); color: inherit; border: 1px solid var(--border); border-radius: 8px; padding: 2px 10px; }          /* readable in light and dark */

/* phone QR windows: QR + code side by side, Android and iPhone steps (2026-10-29) */
.ph-qrrow { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.ph-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.ph-steps h4 { margin: 6px 0 2px; }
.ph-steps ol { margin: 0; padding-left: 20px; }
@media (max-width: 640px) { .ph-steps { grid-template-columns: 1fr; } }

/* Admin › Hub People (2026-11-04): the pills of a line (hub login, tracked, TIK), the filters, the shared mailboxes rows */
.hp-pills { white-space: normal; }
.hp-pill { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; line-height: 1.6; padding: 0 8px; margin: 1px 4px 1px 0; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.hp-login { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.hp-track { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.hp-tik { background: color-mix(in srgb, #7c5cd6 14%, transparent); color: #7c5cd6; }
.hp-no { color: var(--muted); border: 1px dashed var(--border); font-weight: 500; }
.hp-bar { flex-wrap: wrap; gap: 6px; }
.hp-chip { font: inherit; font-size: 12.5px; padding: 3px 11px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text-2); cursor: pointer; }
.hp-chip.on { background: var(--text); color: var(--bg, #fff); border-color: var(--text); }
.hp-chip.on .muted { color: inherit; opacity: .75; }
.ph-card .hub-card-head h3 .hp-pills { margin-left: 8px; font-size: 13px; }
.hp-shrow { display: flex; gap: 6px; margin: 0 0 6px; } .hp-shrow input { flex: 1; min-width: 0; }

/* Hub People: the page of a person, the sections from top to bottom (2026-11-04) */
.hp-page { max-width: none; margin: 0 calc(1cm - 20px); }          /* a record page: the whole width, 1 cm from each side of the window content (main has 20px) (Yanick, 2026-11-04) */
.hp-head { flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 6px; } .hp-head h2 { margin: 0; }
.hp-sec2 { margin: 0 0 18px; }
.hp-form2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 22px; }
.hp-sub { margin: 18px 0 6px; }
.hp-tikgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 26px; }
.hp-sec2 .adm-edit { margin-top: 12px; }
.hp-mode { font-size: 12px; font-weight: 600; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 1px 10px; }          /* the person page in edit mode */
.hp-yes { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }          /* Hub People: Login / Tracked = yes */
.hp-nope { background: color-mix(in srgb, var(--danger) 12%, transparent); color: color-mix(in srgb, var(--danger) 75%, var(--text)); }          /* = no (light red) */
.hp-mail { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; line-height: 1.55; max-height: 46vh; overflow: auto; }          /* the invitation preview */

/* Customer statements (2026-11-05) */
.st-tab td.num, .st-tab th.num { text-align: right; }
.st-row { cursor: pointer; }
.st-row:hover td, .st-row:focus td { background: var(--surface-2); }
.st-tab td.st-late { color: #b02a2a; font-weight: 600; }
.st-wrap { overflow-x: auto; }

/* Scrollbars always on screen (Yanick, 2026-11-05: on a long, wide table the sideways scrollbar was only at the bottom of the
   page): a table scrolls inside its own box no taller than the window, so both scrollbars are always visible; the column
   titles stay at the top while scrolling */
.tbl-wrap { max-height: calc(100vh - 150px); overflow: auto; }
/* a card that is itself the scrolling box: no top padding, else the rows show above the stuck column titles (Yanick, 2026-11-11) */
.card.tbl-wrap { padding-top: 0; }
.tbl-wrap > table > thead > tr > th { position: sticky; top: 0; z-index: 2; background: var(--surface); box-shadow: inset 0 -1px 0 var(--border); }
.rc-vno { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text-2); width: 1%; }
/* role name: read only until Edit (2026-11-05) */
.rl-name { display: flex; gap: 6px; align-items: center; }
.rl-name input { flex: 1; }
.rl-name input[readonly] { background: transparent; border-color: transparent; font-weight: 600; }

/* v4.608: Inventory › To do › ✎ Columns window */
dialog.iv-colwin { width: min(980px, 96vw); }
.iv-cw { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .iv-cw h3 { margin: 4px 0 8px; font-size: 14px; }
.iv-cw-list, .iv-cw-add { max-height: 60vh; overflow: auto; border: 1px solid var(--border); border-radius: 8px; padding: 6px; }
.iv-cw-it { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 6px; cursor: grab; } .iv-cw-it:hover { background: var(--surface-2); }
.iv-cw-it.over { box-shadow: inset 0 2px 0 var(--accent); } .iv-cw-it.dragging { opacity: .4; } .iv-cw-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iv-cw-add { margin-top: 8px; display: flex; flex-direction: column; gap: 2px; } .iv-cw-a { border: 0; background: none; font: inherit; text-align: left; padding: 5px 8px; border-radius: 6px; cursor: pointer; color: var(--text); } .iv-cw-a:hover { background: var(--surface-2); }
.iv-cw-foot { display: flex; gap: 8px; margin-top: 12px; align-items: center; }
@media (max-width: 760px) { .iv-cw { grid-template-columns: 1fr; } }

/* v4.609: file window: a darker see-through background (as in Zoho Creator), a picture shown on its own */
dialog.fileview::backdrop { background: rgba(20,20,24,.62); }
dialog.fileview .fv-img { flex: 1; min-height: 0; width: 100%; object-fit: contain; border-radius: 6px; background: var(--surface-2); }

/* v4.610: the file window like Zoho Creator: no frame, a thin dark bar on top, the document floating on the greyed page */
dialog.fileview { position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; display: flex; flex-direction: column; color: #fff; }
dialog.fileview::backdrop { background: rgba(15,16,20,.68); }
dialog.fileview .fv-bar { flex: none; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; background: #16181f; color: #f2f2f4; font-size: 13px; }
dialog.fileview .fv-title { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
dialog.fileview .fv-size:not(:empty) { background: #3a3d47; border-radius: 4px; padding: 2px 7px; font-size: 11.5px; }
dialog.fileview .fv-pn { display: inline-block; background: #2e3a64; border-radius: 4px; padding: 2px 8px; margin-right: 4px; font-weight: 700; }
dialog.fileview .fv-mid { flex: 1; display: flex; justify-content: center; }
dialog.fileview .zoomer .btn { background: #2b2e38; color: #f2f2f4; border-color: #3a3d47; }
dialog.fileview .fv-right { display: flex; gap: 4px; }
dialog.fileview .fv-ic { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 6px; background: transparent; color: #f2f2f4; font-size: 15px; cursor: pointer; text-decoration: none; }
dialog.fileview .fv-ic:hover { background: #2b2e38; }
dialog.fileview .fv-stage { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px; }
dialog.fileview .fv-sheet { flex: none; background: #fff; box-shadow: 0 4px 24px rgba(0,0,0,.45); }
dialog.fileview .fv-page canvas { display: block; }
dialog.fileview .fv-img { flex: none; width: auto; min-height: 0; object-fit: initial; border-radius: 2px; background: transparent; margin: auto; }
dialog.fileview .fv-text { border: 0; height: calc(100vh - 92px); }
dialog.fileview .fv-native { width: min(1100px, 94vw); }
dialog.fileview .fv-note { color: #e6e6ea; margin: auto; } dialog.fileview .fv-err { color: #ffb4b4; }

/* Fumigation: port status (Yanick, 2026-11-11) */
.fu-psel, .fu-pst { border-radius: 6px; padding: 2px 6px; font-weight: 600; }
.fu-psel { border: 1px solid var(--border); }
.fu-p-rejected { background: #fde2e2; color: #9b1c1c; }
.fu-p-held { background: #fff1d6; color: #8a5300; }
.fu-p-inspection { background: #e3ecff; color: #1d4ed8; }
.fu-p-released, .fu-p-delivered { background: #dcfce7; color: #166534; }
.fu-fees { width: 90px; text-align: right; }
.fu-feec { text-align: right; white-space: nowrap; }
.si-tile.fu-t-freq { border-left-color: #8b5cf6; background: #8b5cf622; }

/* Column widths like Excel (shorthub rule 13) */
.col-grip { position: absolute; top: 0; right: -3px; width: 7px; height: 100%; cursor: col-resize; z-index: 4; touch-action: none; }
.col-grip:hover, .col-resizing .col-grip:active { background: color-mix(in srgb, var(--accent) 45%, transparent); }
body.col-resizing, body.col-resizing * { cursor: col-resize !important; user-select: none !important; }
table.col-fixed td, table.col-fixed th { overflow: hidden; text-overflow: ellipsis; overflow-wrap: anywhere; }
/* Fumigation Rqt (fumigation requested) */
.fu-sel.fu-req, .fu-st.fu-req { background: #ddd6fe; color: #3b0764; border-color: #a78bfa; }
.si-tile.fu-t-req { border-left-color: #a78bfa; background: #ddd6fe33; }
/* Fumigation: the Note title stays above its own column (the .si-tab rule pins the last title to the right edge, over Return) */
.si-tab.fu-tab thead th:last-child { right: auto; box-shadow: none; }
.fu-bar { align-items: center; } .fu-cnt { font-size: 15px; padding-left: 8px; }

/* TripIt: the Followers row of a trip (2026-11-11) */
.tp-fol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0; }
.tp-fol-t { font-size: 12px; font-weight: 600; color: var(--muted); margin-right: 2px; }
.tp-fol-p { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; border: 1px solid var(--border); border-radius: 999px; padding: 1px 4px 1px 9px; }
.tp-fol-p button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 11px; padding: 0 3px; }
.tp-fol-p button:hover { color: var(--danger, #c0392b); }

/* TripIt: a current follower in the ＋ Follower list (2026-11-11) */
.tp-pick-list button.tp-fol-on { font-weight: 600; color: var(--accent, #2f6fde); }

/* TripIt: ✕ on an item's document, ＋ Document (2026-11-11) */
.tp-doc { display: inline-flex; align-items: center; gap: 2px; margin-right: 6px; }
.tp-doc-x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 11px; padding: 0 3px; }
.tp-doc-x:hover { color: var(--danger, #c0392b); }
.tp-doc-add { display: inline-block; margin-top: 3px; font-size: 12px; color: var(--accent, #2f6fde); cursor: pointer; }
.tp-doc-add:hover { text-decoration: underline; }

/* dev.tactik.cc marker in the top bar */
.dev-pill { background: #c62828; color: #fff; font-weight: 700; font-size: 11px; padding: 2px 8px; border-radius: 10px; margin-right: 6px; align-self: center; }
/* Rate finder › Quote request window */
.rf-q-also > span { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); }
.rf-q-ports { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.rf-q-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; background: var(--surface-2, var(--surface)); }
.rf-q-chip button { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0 4px; }
.rf-q-add { display: flex; gap: 8px; } .rf-q-add input { flex: 1; min-width: 0; }
.rf-q-portl { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.rf-q-made { margin: 6px 0 0; padding-left: 18px; line-height: 1.8; }

/* the name and version sit above the left menu, in its width, with its edge as the line (Yanick, 2026-11-14) */
@media (min-width: 801px) {
  header { padding-left: 0; }
  header > .brand { align-self: stretch; width: 220px; box-sizing: border-box; padding: 0 12px 0 16px; gap: 8px; border-right: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 55%, var(--bg)); overflow: hidden; }
}

/* the page's title, Menu and refresh right of the menu's line, its note below in small (Yanick, 2026-11-14) */
.ptl { display: flex; align-items: center; min-width: 0; }
.ptl-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ptl .pagemenu { margin-right: 0; } .ptl .page-ref { margin-left: 0; flex: none; }
.ptl-row h1, .ptl-note { display: none; }
@media (min-width: 801px) {
  header .ptl { flex: 0 1 auto; max-width: 60%; }
  .ptl-row h1 { display: block; margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .ptl-row h1:empty { display: none; }
  .ptl-note { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; flex: none; cursor: default; }
  .ptl-note:empty { display: none; }
  main .bar > h1.ptl-src, main .bar > .ptl-srcn { display: none; }
}
/* the top bar lower: its line closer to the page's title (Yanick, 2026-11-14) */
header { height: 44px; }
.side { top: 44px; height: calc(100vh - 44px); }
.hourbar { top: 44px; }
@media (max-width: 800px) { .side { top: 44px; } }
/* My dashboard (2026-11-14): the cards of the home page, ✎ Customize = remove, add, drag */
.md-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.md-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: start; }
.md-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; box-shadow: var(--shadow); min-height: 120px; min-width: 0; }
.md-card.skel { opacity: .5; }
.md-card { position: relative; }
.md-h { font-size: 15px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.md-h a { color: inherit; text-decoration: none; }
.md-h a:hover { color: var(--brand); }
.md-x { margin-left: auto; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 15px; padding: 2px 6px; border-radius: 6px; }
.md-x:hover { color: var(--danger); background: var(--surface-2); }
.md-grip { color: var(--muted); cursor: grab; }
.md-edit .md-card { cursor: grab; border-style: dashed; min-height: 64px; }
.md-card.md-drag { opacity: .4; }
.md-big { font-size: 26px; font-weight: 700; line-height: 1.2; }
.md-sub { color: var(--text-2); font-size: 13px; margin-top: 4px; }
.md-k { color: var(--muted); font-size: 12px; }
.md-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.md-cols .md-big { font-size: 20px; }
.md-foot { margin-top: 8px; }
.md-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.md-line { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; border-top: 1px solid var(--border); color: inherit; text-decoration: none; min-width: 0; }
a.md-line:hover { color: var(--brand); }
a.md-line span { flex: 1; }
.md-line b.md-hot { color: var(--orange); }
.md-when { color: var(--muted); font-size: 12px; min-width: 52px; white-space: nowrap; }
.md-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-past .md-txt { color: var(--muted); }
.md-late .md-when { color: var(--danger); }
.md-load { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; border-top: 1px solid var(--border); font-size: 13px; min-width: 0; }
.md-kind { font-weight: 700; }
.md-kind.pickup { color: var(--ok); }
.md-kind.delivery { color: var(--brand); }
.md-lane { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.md-rates { display: flex; flex-direction: column; gap: 8px; }
.md-carl { display: flex; flex-direction: column; gap: 8px; }
.md-carl textarea { resize: vertical; width: 100%; box-sizing: border-box; }
.md-carl .btn, .md-rates .btn { align-self: flex-end; }
.md-team .bento { margin-bottom: 12px; }

/* My dashboard v2: card sizes (columns), the corner to resize, the ⚙ settings */
.md-card { grid-column: span var(--w, 3); display: flex; flex-direction: column; }
.md-card > .md-b { flex: 1 1 auto; min-height: 0; }
.md-card.md-fixed > .md-b { overflow: auto; }
@media (max-width: 1250px) { .md-card { grid-column: span var(--w2, 6); } }
@media (max-width: 800px) { .md-card { grid-column: 1 / -1; height: auto !important; } }
.md-tools { margin-left: auto; display: flex; gap: 2px; }
.md-tools .md-x { margin-left: 0; }
.md-rs { position: absolute; right: 2px; bottom: 2px; width: 16px; height: 16px; cursor: nwse-resize; touch-action: none; z-index: 2; background: linear-gradient(135deg, transparent 50%, var(--muted) 50%, var(--muted) 58%, transparent 58%, transparent 70%, var(--muted) 70%, var(--muted) 78%, transparent 78%); border-radius: 0 0 8px 0; }
.md-card.md-sizing { outline: 2px solid var(--brand); }
.md-fig { font-size: 18px; font-weight: 700; line-height: 1.3; }
.md-fig.md-f-loads { font-size: 22px; }
.md-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.md-tbl td { padding: 3px 4px; border-top: 1px solid var(--border); }
.md-tbl .md-fig { font-size: 13px; font-weight: 600; }
.md-tbl td.num { text-align: right; white-space: nowrap; }
.md-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.md-checks > span { width: 100%; color: var(--text-2); font-size: 13px; }
.md-ck { display: inline-flex; align-items: center; gap: 4px; }
/* My dashboard: report cards (lib/cardbuild.js) and their builder */
.cb-dlg { width: min(1100px, 96vw); max-width: 96vw; }
.cb-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cb-form { max-height: 70vh; overflow: auto; padding-right: 4px; }
.cb-prev { position: sticky; top: 0; }
.cb-prev .md-card { min-height: 160px; max-height: 70vh; overflow: auto; }
.cb-ck { align-self: end; }
.cb-fs { display: flex; flex-direction: column; gap: 6px; }
.cb-fs > span { color: var(--text-2); font-size: 13px; }
.cb-fs > .btn { align-self: flex-start; }
.cb-f { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px; border: 1px solid var(--border); border-radius: 8px; }
.cb-f select, .cb-f input { max-width: 200px; }
.cb-f input[type=number] { width: 90px; }
.cb-f .md-x { margin-left: auto; }
.cb-pick { width: 100%; border-top: 1px solid var(--border); padding-top: 6px; }
.cb-pick-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.cb-pick-list { max-height: 220px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.cb-pick-list .md-ck[hidden] { display: none; }
.cb-bars { display: flex; flex-direction: column; gap: 4px; }
.cb-bar { display: grid; grid-template-columns: minmax(60px, 40%) 1fr auto; gap: 8px; align-items: center; font-size: 13px; }
.cb-bk { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-bt { background: var(--surface-2); border-radius: 4px; height: 10px; overflow: hidden; }
.cb-bt i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.cb-mon { width: 100%; height: 90px; display: block; }
.cb-mon rect { fill: var(--brand); }
.cb-monk { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.cb-tw { max-height: 360px; }
@media (max-width: 800px) { .cb-grid { grid-template-columns: 1fr; } }
/* the live report page (mdCardPage): the Columns list */
.mc-cols { width: 300px; }
.mc-cl { max-height: 60vh; overflow: auto; }
.mc-ci { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 2px 0; }
.mc-ci .md-x { padding: 0 4px; font-size: 11px; }
/* the report builder (mdCardPage ✎ Edit): the columns in their order, a filter on each, the field list */
.mc-cols-ed { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.mc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); cursor: grab; }
.mc-row.md-drag { opacity: .4; }
.mc-n { color: var(--muted); font-size: 12px; min-width: 16px; }
.mc-lbl { min-width: 180px; }
.mc-f { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; flex: 1; }
.mc-f input[type=number] { width: 100px; }
.mc-tools { display: flex; gap: 2px; margin-left: auto; }
.mc-tools .md-x { margin-left: 0; }
.mc-fields { margin-top: 8px; }
.mc-fields .cb-pick-list { max-height: 320px; }
.mc-fields .mt-rep.on { opacity: .45; }
.mc-th { cursor: pointer; user-select: none; }
.mc-viz { max-width: 900px; }
.cb-pick-list .md-ck { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 6px; width: 100%; text-align: left; margin: 0; padding: 2px 0; }
.cb-pick-list .md-ck input[type=checkbox] { width: auto; flex: none; margin: 0; }
.mc-pick { flex-basis: 100%; max-width: 560px; }
.mc-pick .cb-pick-top input[type=search] { flex: 1; width: auto; min-width: 0; }
/* TIK report sources (lib/cardtik.js): the picker and the source page */
.mt-list { max-height: 60vh; overflow: auto; display: flex; flex-direction: column; margin-top: 8px; min-width: min(560px, 90vw); }
.mt-rep { text-align: left; background: none; border: 0; border-bottom: 1px solid var(--border); padding: 7px 6px; color: inherit; cursor: pointer; font: inherit; }
.mt-rep:hover { background: var(--surface-2); }
.mt-rep[hidden] { display: none; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.kv > span { color: var(--muted); }
/* report builder: the name stays on the first line when a column's choices are open */
.mc-row { align-items: flex-start; }
.mc-row > .md-grip, .mc-row > .mc-n, .mc-row > .mc-lbl, .mc-row > .mc-tools { line-height: 38px; }

/* v4.686: Export window (page Menu › Export) */
.ex-dlg { width: min(560px, calc(100vw - 32px)); }
.ex-fmt { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px; }
.ex-cb { display: flex; align-items: center; gap: 6px; margin: 4px 0 6px; }
.ex-cols { list-style: none; margin: 0; padding: 0; max-height: 50vh; overflow: auto; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.ex-cols li { display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-bottom: 1px solid var(--border); cursor: grab; }
.ex-cols li:last-child { border-bottom: 0; }
.ex-cols li.drag { opacity: .4; }
.ex-cols li label { flex: 1; display: flex; gap: 8px; align-items: center; cursor: pointer; color: var(--text); }
.ex-cols li button { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 2px 4px; }
.ex-cols li button:disabled { opacity: .25; cursor: default; }
.ex-grip { color: var(--muted); font-size: 11px; letter-spacing: -2px; }
.ex-dlg .actions { display: flex; align-items: center; gap: 6px; margin-top: 12px; }

/* v4.689: Sales radar grouped by any fields, one column each */
.rd-dim { white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.rd-prod { font-style: italic; color: var(--text-2); }
.rd-tw { color: var(--muted); margin-right: 6px; font-size: 11px; }
tr.ob-row.open .rd-tw { display: inline-block; transform: rotate(90deg); }

/* v4.692: Sales radar, agents "Only" (both sides by the chosen agents) */
.sl-only { border: 1px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: 999px; padding: 3px 12px; font-size: 12px; cursor: pointer; margin-left: 6px; }
.sl-only.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

/* v4.693: Sales radar, all lanes */
.rd-ok { color: var(--ok); }

/* v4.696: Sales radar, Agent buying side / selling side pickers (like the commission reports) */
.sl-ap { gap: 18px; align-items: flex-start; }
.sl-ap { flex-wrap: wrap; }
.sl-ap .cr-fbox input { width: 230px; border-radius: 6px; border-left: 1px solid var(--border); padding: 6px 8px 6px 34px; }
.sl-ap .cr-chips { max-width: 420px; margin-top: 2px; }

/* v4.701: Sales radar, Clear all beside the boxes */
.sl-ap .sl-clear { align-self: flex-end; margin-bottom: 2px; }

/* v4.702: Sales radar, Dormant (red) / Next (green) */
.rd-dorm { color: var(--danger); }
.rd-next { color: var(--ok); }

/* v4.704: Sales radar, a company under a lane opens its organization page */
a.sl-org { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
a.sl-org:hover { color: var(--accent); }

/* v4.706: Sales radar, the "– / OR" dropdown between the two agent boxes, as tall as the boxes */
.sl-opf select { height: 38px; min-width: 76px; font-size: 13px; }

/* v4.707: a company under a lane opens in a window, half the screen */
dialog.org-dlg { width: 50vw; max-width: 50vw; height: 50vh; max-height: 50vh; overflow: auto; }
@media (max-width: 800px) { dialog.org-dlg { width: calc(100vw - 32px); max-width: none; height: auto; max-height: 80vh; } }
dialog.org-dlg .hub-card { margin-bottom: 10px; }

/* v4.709: Sales radar removals (reason, approval) */
dialog.rm-dlg { max-width: 520px; }
.rm-st { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.rm-st.pending { background: color-mix(in srgb, var(--orange) 18%, transparent); color: var(--orange); }
.rm-st.approved { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.rm-st.declined { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.rm-acts { white-space: nowrap; } .rm-acts .btn + .btn { margin-left: 4px; }

/* v4.710: Sales radar, WS # box (narrower) */
.sl-ap [data-ap="wsn"] .cr-fbox input { width: 150px; }

/* v4.711: Sales radar, View as a user (Super Admin) */
select.sl-as.on { border-color: var(--orange); background-color: color-mix(in srgb, var(--orange) 12%, var(--surface)); font-weight: 700; }

/* v4.712: company window, postal address and commercial contacts */
.ow-post { font-size: 15px; line-height: 1.5; }
.ow-hours { margin-top: 10px; font-size: 13px; }
.ow-con { padding: 8px 0; border-top: 1px solid var(--border); line-height: 1.5; } .ow-con:first-child { border-top: 0; padding-top: 0; }

/* a new email with links, written in an editable box (Admin / Not Process; Yanick, 2026-11-17) */
.mc-rich { min-height: 160px; max-height: 50vh; overflow: auto; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font-family: Calibri, Arial, sans-serif; font-size: 11pt; line-height: 1.4; }
.mc-rich:focus { outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.mc-rich a { color: #0f6cbd; text-decoration: underline; }
