:root {
  --bg: #f4f6fa;
  --panel: #ffffff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #eef2f7;
  --nav: #0b1730;
  --nav-2: #13244a;
  --accent: #2456e6;
  --accent-2: #e8eefc;
  --ok: #0f9d58;
  --ok-2: #e6f6ee;
  --warn: #b45309;
  --warn-2: #fff4e0;
  --err: #c62828;
  --err-2: #fdecec;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .05);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); font-size: 14px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.row { display: flex; gap: 12px; align-items: center; }
.grow { flex: 1; }
.spacer { flex: 1; }

/* ---------- login */
.login-wrap { min-height: 100vh; padding: 24px; display: grid; place-items: center; background: radial-gradient(1200px 600px at 20% -10%, #2b4ea8 0%, transparent 60%), linear-gradient(160deg, #0b1730, #13244a); }
.login-card { width: 380px; background: #fff; border-radius: 16px; padding: 32px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.login-card h1 { margin: 12px 0 4px; font-size: 22px; }
.login-card p { margin: 0 0 20px; color: var(--muted); }
.logo-mark { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #2456e6, #6b8cff); display: grid; place-items: center; color: #fff; font-weight: 800; }
.poc-pill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: #fff4e0; color: #9a4b00; border: 1px solid #f6d7a7; }

/* ---------- shell */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.nav { background: var(--nav); color: #c7d2fe; padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.nav .brand { display: flex; gap: 10px; align-items: center; padding: 4px 8px 18px; color: #fff; font-weight: 700; }
.nav .brand small { display: block; font-weight: 500; color: #94a3b8; font-size: 11px; }
.nav a { color: #c7d2fe; padding: 9px 12px; border-radius: 8px; display: flex; gap: 10px; align-items: center; font-weight: 500; }
.nav a:hover { background: var(--nav-2); text-decoration: none; color: #fff; }
.nav a.active { background: #1d3270; color: #fff; }
.nav .ico { width: 18px; text-align: center; opacity: .9; }
.nav .foot { margin-top: auto; font-size: 11px; color: #7c89a8; padding: 8px; line-height: 1.5; }
.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 5; background: rgba(244,246,250,.9); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); padding: 12px 28px; display: flex; align-items: center; gap: 12px; }
.topbar h2 { margin: 0; font-size: 18px; }
.user-chip { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 12px; }
.avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-2); color: var(--accent); font-weight: 700; font-size: 12px; }
.content { padding: 24px 28px 120px; max-width: 1480px; }

/* ---------- generic */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { padding: 14px 18px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 10px; }
.card-h h3 { margin: 0; font-size: 14px; }
.card-b { padding: 16px 18px; }
.btn { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 8px; padding: 8px 14px; cursor: pointer; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.btn:hover { border-color: #cbd5e1; background: #f8fafc; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #1c47c4; }
.btn.danger { color: var(--err); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #eef2f7; color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--ok-2); color: var(--ok); }
.badge.warn { background: var(--warn-2); color: var(--warn); }
.badge.err { background: var(--err-2); color: var(--err); }
.badge.blue { background: var(--accent-2); color: var(--accent); }
.badge.region { background: #ede9fe; color: #5b21b6; font-weight: 600; letter-spacing: .02em; }
.regpick { display: flex; flex-wrap: wrap; gap: 6px; max-width: 220px; }
.badge.role-superadmin { background: #f3e8ff; color: #7e22ce; }
.badge.role-operator { background: var(--accent-2); color: var(--accent); }
.badge.role-readonly { background: #eef2f7; color: var(--ink-2); }
.brand-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 6px; color: #fff; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
input[type=text], input[type=password], input[type=search], input[type=email], input[type=date], input[type=time], textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #cfd8e3; border-radius: 8px; padding: 9px 11px; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 84px; resize: vertical; line-height: 1.45; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(36,86,230,.15); }
input:disabled, textarea:disabled, select:disabled { background: #f8fafc; color: var(--ink-2); }
label.f { display: block; font-weight: 600; font-size: 12px; color: var(--ink-2); margin: 0 0 6px; }
.field { margin-bottom: 16px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.field .msg { font-size: 12px; margin-top: 5px; }
.field.has-err input, .field.has-err textarea, .field.has-err select { border-color: var(--err); background: #fffafa; }
.field.has-err .msg { color: var(--err); }
.field.has-warn .msg { color: var(--warn); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.toggle input { display: none; }
.toggle .sw { width: 38px; height: 22px; border-radius: 999px; background: #cbd5e1; position: relative; transition: background .15s; }
.toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle input:checked + .sw { background: var(--accent); }
.toggle input:checked + .sw::after { left: 19px; }
.toggle input:disabled + .sw { opacity: .6; }
.seg { display: inline-flex; background: #eef2f7; border-radius: 9px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 7px; cursor: pointer; font-weight: 600; color: var(--ink-2); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.radio-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.radio-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; }
.radio-card.on { border-color: var(--accent); background: #f5f8ff; box-shadow: 0 0 0 3px rgba(36,86,230,.1); }
.radio-card input { margin-top: 3px; }
.radio-card b { display: block; font-size: 13px; }
.radio-card span { font-size: 12px; color: var(--muted); }

/* ---------- stores list */
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.filters input[type=search] { width: 320px; }
.filters select { width: 220px; }
.chipbtn { border: 1px solid var(--line); background: #fff; padding: 7px 12px; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--ink-2); font-size: 12px; }
.chipbtn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
table.list { width: 100%; border-collapse: separate; border-spacing: 0; }
table.list th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafbfd; }
table.list td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.list tr.click { cursor: pointer; }
table.list tr.click:hover td { background: #f8faff; }
.issue-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { padding: 16px 18px; }
.kpi .v { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.kpi .l { color: var(--muted); font-size: 12px; font-weight: 600; }
.bar { height: 8px; border-radius: 999px; background: #eef2f7; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

/* ---------- store page */
.store-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.store-head h1 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.store-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 18px; align-items: start; }
.store-grid > * { min-width: 0; }
.lms-panel { position: sticky; top: 76px; }
.lms-panel .ro { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.kv { display: grid; grid-template-columns: 92px 1fr; gap: 6px 10px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.map { width: 100%; height: 170px; border: 0; border-radius: 10px; background: #e5e7eb; margin: 10px 0 4px; }
.hours { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.hours td { padding: 3px 0; }
.hours td:first-child { color: var(--muted); width: 52px; }
.hours tr.today td { font-weight: 700; color: var(--ink); }
.section-t { font-size: 12px; font-weight: 700; color: var(--ink-2); margin: 16px 0 8px; display: flex; align-items: center; gap: 8px; }
.wh { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: #fbfcfe; }
.wh summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; gap: 8px; align-items: center; }
.wh summary::-webkit-details-marker { display: none; }
.dept-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.dept-tab { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 7px 12px; cursor: pointer; display: flex; gap: 8px; align-items: center; font-weight: 600; color: var(--ink-2); }
.dept-tab .code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.dept-tab.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.dept-tab .dot.err { background: var(--err); }
.dept-tab .dot.warn { background: #f59e0b; }
.dept-tab .dot.ok { background: var(--ok); }
.sub-tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 0 14px; border-bottom: 1px solid var(--line-2); }
.sub-tab { border: 0; background: transparent; padding: 12px 10px; white-space: nowrap; cursor: pointer; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; display: flex; gap: 6px; align-items: center; }
.sub-tab.on { color: var(--accent); border-bottom-color: var(--accent); }
.sub-tab .n { font-size: 10px; background: var(--err-2); color: var(--err); border-radius: 999px; padding: 1px 6px; }
.sub-tab .n.w { background: var(--warn-2); color: var(--warn); }
.editor-body { padding: 18px; min-height: 380px; }
.savebar { position: fixed; left: 232px; right: 0; bottom: 0; z-index: 20; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(15,23,42,.08); padding: 12px 28px; display: flex; gap: 12px; align-items: center; transform: translateY(110%); transition: transform .2s; }
.savebar.show { transform: translateY(0); }
.banner { padding: 10px 14px; border-radius: 10px; font-size: 13px; display: block; line-height: 1.5; margin-bottom: 14px; }
.banner.info { background: var(--accent-2); color: #1e3a8a; }
.banner.warn { background: var(--warn-2); color: #7c2d12; }
.banner.err { background: var(--err-2); color: #7f1d1d; }
.img-prev { margin-top: 8px; border: 1px dashed #cbd5e1; border-radius: 10px; padding: 8px; display: flex; gap: 10px; align-items: center; min-height: 72px; background: #fbfcfe; }
.img-prev img { max-height: 120px; max-width: 220px; border-radius: 6px; }
.char { font-size: 11px; color: var(--muted); float: right; }

/* ---------- history */
.tl { position: relative; padding-left: 18px; }
.tl::before { content: ""; position: absolute; left: 5px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.tl-item { position: relative; margin-bottom: 16px; }
.tl-item::before { content: ""; position: absolute; left: -17px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--accent); }
.chg { font-size: 12px; margin-top: 6px; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.chg div { display: grid; grid-template-columns: 200px 1fr 1fr; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--line-2); }
.chg div:last-child { border-bottom: 0; }
.chg .from { color: var(--err); text-decoration: line-through; word-break: break-word; }
.chg .to { color: var(--ok); word-break: break-word; }

/* ---------- modal + toast */
.modal-bg { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: grid; place-items: center; z-index: 50; }
.modal { width: min(720px, 92vw); max-height: 86vh; overflow: auto; background: #fff; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.modal .card-h { position: sticky; top: 0; background: #fff; }
.toast { position: fixed; right: 24px; bottom: 84px; z-index: 60; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); max-width: 420px; }
.toast.err { background: var(--err); }

/* ---------- preview (customer) */
.preview-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 18px; }
.phone { width: 340px; border-radius: 34px; background: #0f172a; padding: 12px; box-shadow: 0 20px 50px rgba(15,23,42,.25); }
.phone .scr { border-radius: 24px; background: #fff; overflow: hidden; height: 660px; overflow-y: auto; }
.cust-h { padding: 16px; border-bottom: 1px solid #eee; display: flex; align-items: center; justify-content: center; }
.cust-h img { max-height: 26px; max-width: 200px; }
.cust-hero { padding: 18px 16px 8px; }
.cust-hero h4 { margin: 0 0 4px; font-size: 18px; }
.cust-tabs { display: flex; margin: 10px 16px; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; }
.cust-tabs div { flex: 1; text-align: center; padding: 8px; font-weight: 600; font-size: 12px; color: #6b7280; }
.cust-tabs div.on { background: #111827; color: #fff; }
.cust-sec { padding: 8px 16px 14px; font-size: 13px; line-height: 1.5; }
.cust-sec h5 { margin: 6px 0; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; }
.cust-btn { margin: 4px 16px 18px; display: block; text-align: center; background: #e11d2e; color: #fff; border-radius: 10px; padding: 12px; font-weight: 700; }
.skeleton { background: linear-gradient(90deg, #eef2f7, #f8fafc, #eef2f7); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; height: 14px; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.empty { text-align: center; padding: 40px; color: var(--muted); }
@media (max-width: 1100px) { .store-grid { grid-template-columns: 1fr; } .lms-panel { position: static; } .preview-wrap { grid-template-columns: 1fr; } .kpis { grid-template-columns: repeat(2, 1fr); } }

/* moves, gaps, audit (severity: red = vacancy / failure, amber = needs attention, blue = info, green = ok) */
.banner.ok { background: var(--ok-2); color: #14532d; }
.banner.err { border-left: 4px solid var(--err); }
.banner.warn { border-left: 4px solid var(--warn); }
.gaplist { margin: 6px 0 0; padding-left: 18px; }
.gaplist li { margin: 3px 0; }
.badge.auto { background: #ecfeff; color: #0e7490; }
.btn.xs { padding: 2px 8px; font-size: 11px; }
.pick-res { max-height: 220px; overflow: auto; margin-top: 6px; }
.hist-panel > summary { list-style: none; border-bottom: 0; }
.hist-panel > summary::-webkit-details-marker { display: none; }
.hist-panel > summary h3::before { content: "▸ "; color: var(--ink-2); }
.hist-panel[open] > summary h3::before { content: "▾ "; }
tr.hidden { display: none; }
.modal.wide { width: min(980px, 95vw); max-width: 980px; }
.fromto { margin-top: 4px; word-break: break-word; }
.fromto .from { color: var(--err); text-decoration: line-through; }
.fromto .to { color: var(--ok); font-weight: 600; }

/* department not offered at this store */
.offering-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfc; }
.offering-bar.off { background: #f3f4f6; }
.dept-tab.not-offered { opacity: .55; background: #f3f4f6; }
.dept-tab.not-offered .nm { text-decoration: line-through; }
.dept-tab.not-offered-group { background: transparent; border-style: dashed; color: var(--ink-2); }
.dot.off { background: #cbd5e1; }
.dept-tab.not-offered.on { opacity: 1; background: #64748b; border-color: #64748b; }
.dept-tab.not-offered.on .nm, .dept-tab.not-offered.on .code { color: #fff; }

/* brand badges (franchisee tiles, facets): logo or neutral initials, fixed size so tiles keep their size */
.bchips { display: inline-flex; gap: 4px; align-items: center; flex-shrink: 0; }
.bchip { display: inline-flex; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; overflow: hidden; vertical-align: middle; }
.bchip img { max-width: 20px; max-height: 20px; object-fit: contain; }
.bchip i { font-style: normal; font-size: 9px; font-weight: 700; color: #475569; letter-spacing: -.02em; }
.facets { padding: 4px 14px 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.facets > .small { flex-basis: 100%; }
.chipbtn .n { margin-left: 4px; font-size: 11px; color: var(--muted); }
.chipbtn.on .n { color: inherit; }

/* department mailing lists */
.ml-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 8px; }
.ml { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; }
.ml-h { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.ml-l { font-weight: 600; font-size: 12.5px; flex: 1; }
.ml-items { display: flex; flex-direction: column; gap: 4px; }
.ml-chip { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12.5px; padding: 3px 8px; border-radius: 6px; background: #f1f5f9; word-break: break-all; }
.ml-chip.bad { background: #fee2e2; color: #991b1b; }
.ml-chip.diff { background: #fef3c7; box-shadow: inset 3px 0 0 #f59e0b; }
.ml-x { border: 0; background: transparent; cursor: pointer; font-size: 15px; line-height: 1; color: #64748b; }
.ml-x:hover { color: var(--err); }
.ml-add { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.ml-add input { flex: 1; min-width: 150px; }
.ml-msg { flex-basis: 100%; font-size: 12px; color: var(--err); }
.has-err .ml { border-color: var(--err); }
.fr-dept { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 8px; }

/* store grid view */
.store-grid.grid-mode { grid-template-columns: minmax(0, 1fr); }
.store-grid.grid-mode > aside { order: 2; }
.grid-bar { display: flex; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.colchooser { position: relative; }
.colchooser > summary { list-style: none; }
.cc-pop { position: absolute; z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12); display: flex; flex-direction: column; gap: 6px; min-width: 220px; }
.grid-wrap { overflow: auto; max-height: calc(100vh - 260px); }
table.dgrid { border-collapse: separate; border-spacing: 0; font-size: 12.5px; min-width: 100%; }
table.dgrid th, table.dgrid td { border-bottom: 1px solid var(--line); border-right: 1px solid #eef2f7; padding: 6px 8px; vertical-align: top; text-align: left; background: #fff; }
table.dgrid thead th { position: sticky; top: 0; z-index: 2; background: #f8fafc; font-weight: 600; white-space: nowrap; }
table.dgrid thead tr:nth-child(2) th { top: 31px; }
table.dgrid th.grp { text-align: center; color: var(--accent); }
table.dgrid .sticky { position: sticky; left: 0; z-index: 3; background: #fff; min-width: 170px; }
table.dgrid thead .sticky { z-index: 4; background: #f8fafc; }
table.dgrid td.gc { min-width: 130px; max-width: 260px; }
table.dgrid td.gc.ed { cursor: pointer; }
table.dgrid td.gc.ed:hover { outline: 2px solid var(--accent-2); outline-offset: -2px; }
table.dgrid td.diff, .legend-diff { background: #fffbeb; box-shadow: inset 3px 0 0 #f59e0b; }
.legend-diff { display: inline-block; width: 14px; height: 12px; vertical-align: middle; border-radius: 2px; }
table.dgrid td.chg { background: #eff6ff; }
table.dgrid td.err { box-shadow: inset 0 0 0 2px var(--err); }
table.dgrid td.warn .cv { color: #92400e; }
table.dgrid .cv.long { max-height: 4.6em; overflow: hidden; white-space: pre-wrap; }
table.dgrid .cmsg, .cmsg { color: var(--err); font-size: 11.5px; margin-top: 3px; }
table.dgrid tr.not-offered-row td { color: #94a3b8; background: #f8fafc; }
.ml-mini div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.ml-mini div.d { background: #fef3c7; }
.ro-i { font-size: 10px; opacity: .7; }
.cl-sec { border-bottom: 1px dashed var(--line); padding: 4px 0; }

table.sortable th[data-sort] { cursor: pointer; user-select: none; white-space: nowrap; }
table.sortable th .si { color: #94a3b8; font-size: 10px; }
table.sortable th.sorted .si { color: var(--accent); }
