/* TOCS Operations theme. Times New Roman is the text. */
:root, .tofs-shell {
  --orange:#E86B40;--orange-d:#C9552D;--orange-t:#FBE8DF;--orange-f:#FEF5F1;
  --navy:#102347;--navy-t:#E3E8F2;
  --purple:#8B4F7F;--purple-t:#F1E7EF;
  --teal:#0E7A3D;--teal-t:#E5F6EC;--teal-d:#0E7A3D;
  --amber:#D9A33F;--amber-t:#FBF1DC;--amber-d:#8A5F0E;
  --steel:#4A7B9D;--red:#C85757;--red-t:#F9E3E3;--red-d:#A13C3C;
  --ink:#1F2937;--muted:#6B7280;--faint:#9CA3AF;
  --line:#E8E0D0;--line2:#E0D4C0;--soft:#FFF9EC;
  --bg:#F7F4EC;--side:#FFFFFF;--top:rgba(255,255,255,.94);--shell-line:#E8E0D0;
  --side-ink:#4A3B28;--side-mute:#8A7660;--side-hover:#FFF6D6;--side-on:#FFF6D6;--side-on-ink:#1A1408;
  --on:#102347;--on-m:#5B6472;--on-f:#8A919C;--ctl:#FFFFFF;--ctl-line:#DDE1E6;--ctl-ink:#1F2937;
  --card-line:#E6E8EC;
}
.tofs-shell.tofs-theme-navy {
  --bg:#141414;--side:#191919;--top:rgba(20,20,20,.92);--shell-line:#2A2A2A;
  --side-ink:#B3B3B3;--side-mute:#7A7A7A;--side-hover:#232323;--side-on:#FFFFFF;--side-on-ink:#102347;
  --on:#F5F5F7;--on-m:#B3B3B3;--on-f:#8A8A8A;--ctl:#202020;--ctl-line:#363636;--ctl-ink:#F5F5F7;
  --card-line:transparent;
}
html, body, .dash-app, #tofs-root, .tofs-shell, .tofs-shell button, .tofs-shell input, .tofs-shell select,
.tofs-shell h1, .tofs-shell h2, .tofs-shell h3, .tofs-shell .dash-spreadsheet-inner td, .tofs-shell .dash-spreadsheet-inner th {
  font-family: "Times New Roman", Times, serif !important;
}
.tofs-shell { background: var(--bg) !important; color: var(--on) !important; font-size: 14px; }
.tofs-shell .tofs-card, .tofs-shell .tofs-kpi {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 2px rgba(26, 20, 8, .04);
}
.tofs-shell .tofs-card { border-top: 3px solid #FCDD09 !important; }

/* Sign-in */
.tofs-shell:has(.login-wrap) { display: block !important; background: #fff !important; min-height: 100vh; }
#page-chrome:has(.login-wrap) { display: block !important; padding: 0 !important; min-height: 100vh; width: 100%; }
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); }
.story { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 44px 56px; display: flex; flex-direction: column; min-height: 100vh; }
.story::before { content: ""; position: absolute; width: 620px; height: 620px; right: -220px; top: -240px; border-radius: 50%; background: radial-gradient(circle, rgba(232,107,64,.28), transparent 65%); }
.story::after { content: ""; position: absolute; width: 520px; height: 520px; left: -200px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(139,79,127,.35), transparent 65%); }
.story > * { position: relative; z-index: 1; }
.lockup, .brand { display: flex; align-items: center; gap: 12px; }
.mark { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--purple), var(--orange)); color: #fff; font-weight: 800; font-size: 14px; }
.brand .mark { width: 34px; height: 34px; border-radius: 9px; font-size: 12px; }
.cp-logo { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; display: block; flex: none; }
.brand .cp-logo { width: 34px; height: 34px; border-radius: 9px; }
.lockup b, .brand b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: #fff; line-height: 1.1; }
.brand b { color: var(--on) !important; font-size: 16.5px; }
.lockup span, .brand span { display: block; font-size: 12px; color: rgba(255,255,255,.6); font-weight: 500; }
.brand span { color: var(--side-mute) !important; font-size: 11.5px; }
.story-body { margin: auto 0; max-width: 520px; padding: 48px 0; }
.story h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; margin: 0 0 14px; color: #fff !important; }
.story p { color: rgba(255,255,255,.72); font-size: 15.5px; line-height: 1.6; margin: 0 0 36px; max-width: 44ch; }
.trail { list-style: none; margin: 0; padding: 0; position: relative; }
.trail::before { content: ""; position: absolute; left: 15px; top: 18px; bottom: 18px; width: 2px; background: linear-gradient(var(--orange), var(--purple)); opacity: .6; }
.trail li { display: flex; align-items: center; gap: 16px; padding: 9px 0; }
.trail .node { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); border: 2px solid var(--orange); display: grid; place-items: center; color: var(--orange); flex-shrink: 0; }
.trail li:last-child .node { background: var(--orange); color: #fff; }
.trail .node .ic { width: 15px; height: 15px; background: currentColor; }
.trail .t { font-size: 14px; font-weight: 600; color: #fff; }
.trail .s { font-size: 12.5px; color: rgba(255,255,255,.55); }
.story-foot { font-size: 12px; color: rgba(255,255,255,.45); }
.signin { display: grid; place-items: center; padding: 40px 24px; background: #fff; }
.tofs-theme-navy .signin { background: var(--bg); }
.login { width: min(400px, 100%); }
.login h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--on) !important; }
.login .intro { color: var(--on-m) !important; margin: 6px 0 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--on) !important; margin-bottom: 6px; }
.login .in, .login input.in {
  width: 100%; height: 42px; border: 1px solid var(--ctl-line) !important; border-radius: 8px !important;
  padding: 0 12px; font-size: 14px; color: var(--ctl-ink) !important; background: var(--ctl) !important;
  -webkit-text-fill-color: var(--ctl-ink) !important; outline: none;
}
.login input.in:focus { border-color: var(--orange) !important; box-shadow: 0 0 0 3px var(--orange-t); }
.pw { position: relative; }
.pw .in, .pw input.in { padding-right: 64px; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 6px 8px; border-radius: 6px; height: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 7px; border: 1px solid transparent; background: var(--orange); color: #fff !important; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn.block { width: 100%; height: 42px; font-size: 14px; margin-top: 6px; }
.btn.ghost { background: var(--ctl) !important; color: var(--ctl-ink) !important; border-color: var(--ctl-line) !important; }
.demo { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.demo-h { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.acct { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; margin-bottom: 8px; border: 1px solid var(--ctl-line); border-radius: 9px; background: var(--ctl); color: var(--ctl-ink); cursor: pointer; text-align: left; height: auto; }
.acct:hover { border-color: var(--orange); background: var(--orange-f); }
.acct .av { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; font-size: 12px; font-weight: 700; }
.acct .av.ops { background: var(--navy-t); color: var(--navy); }
.acct .av.cs { background: var(--purple-t); color: var(--purple); }
.acct b { display: block; font-size: 13.5px; color: var(--ctl-ink); }
.acct small { display: block; font-size: 12px; color: var(--muted); }
.acct .use { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--orange-d); }

/* Shell */
.tofs-shell:has(.tofs-side) { display: grid !important; grid-template-columns: 244px minmax(0,1fr); background: var(--bg) !important; color: var(--on) !important; }
.tofs-shell .tofs-side { background: var(--side) !important; border-right: 1px solid var(--shell-line) !important; width: 244px; padding: 16px 12px; }
.tofs-shell .tofs-side .nlabel { color: var(--side-mute) !important; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.tofs-shell .tofs-side .nlink { color: var(--side-ink) !important; border-radius: 7px; font-weight: 500; }
.tofs-shell .tofs-side .nlink .ic { background: var(--side-mute); }
.tofs-shell .tofs-side .nlink:hover { background: var(--side-hover) !important; color: var(--on) !important; }
.tofs-shell .tofs-side .nlink.on { background: var(--side-on) !important; color: var(--side-on-ink) !important; font-weight: 600; }
.tofs-shell .tofs-side .nlink.on .ic { background: var(--orange) !important; }
.tofs-shell .side-foot { margin-top: auto; padding: 12px 4px 0; border-top: 1px solid var(--shell-line); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tofs-shell .side-foot .btn { width: 100%; }
.tofs-shell .side-foot .who { flex: 1; min-width: 0; }
.tofs-shell .side-foot .who b { display: block; font-size: 13px; color: var(--on) !important; }
.tofs-shell .side-foot .who span { font-size: 11.5px; color: var(--side-mute) !important; }
.avatar, .desk-chip .avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--orange-t); color: var(--navy); flex-shrink: 0; }
.desk-cs .avatar { background: var(--purple-t); color: var(--purple); }
.desk-chip .avatar { width: 26px; height: 26px; font-size: 10px; }
.tofs-shell .side-out { font-size: 0 !important; text-decoration: none; color: var(--on-m) !important; }
.side-out::before {
  content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'><path d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'><path d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/></svg>") center / contain no-repeat;
}
.tofs-shell .tofs-top { background: var(--top) !important; border-bottom: 1px solid var(--shell-line) !important; backdrop-filter: blur(10px); padding: 10px 28px; gap: 10px; }
.tofs-shell .crumb { color: var(--on-f) !important; }
.tofs-shell .crumb b { color: var(--on) !important; }
.tofs-shell .gs-wrap { position: relative; flex: 1; max-width: 420px; }
.tofs-shell .gs-wrap .ic-search { position: absolute; left: 10px; top: 9px; background: var(--on-f); }
.tofs-shell .gs-wrap input { width: 100%; height: 34px; border: 1px solid var(--ctl-line) !important; background: var(--ctl) !important; color: var(--ctl-ink) !important; -webkit-text-fill-color: var(--ctl-ink) !important; border-radius: 8px; padding: 0 12px 0 32px; font-size: 13px; }
.tofs-shell .gs-wrap input:focus { border-color: var(--orange) !important; box-shadow: 0 0 0 3px var(--orange-t); }
.tofs-shell .gsearch-pop { display: none; position: absolute; top: 40px; left: 0; right: 0; z-index: 50; background: #fff; color: #1F2937; border: 1px solid #E6E8EC; border-radius: 10px; box-shadow: 0 12px 32px rgba(16,35,71,.12); max-height: 320px; overflow: auto; padding: 6px; }
.tofs-shell .gsearch-pop.open { display: block; }
.tofs-shell .gsearch-pop button { display: block; width: 100%; text-align: left; border: 0; background: transparent; color: #102347; padding: 8px 10px; border-radius: 7px; cursor: pointer; font-size: 13px; height: auto; }
.tofs-shell .gsearch-pop button small { display: block; color: #6B7280; }
.tofs-shell .iconbtn, .tofs-shell .tofs-hamb { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--ctl-line) !important; background: var(--ctl) !important; color: var(--on-m) !important; display: grid; place-items: center; cursor: pointer; }
.tofs-shell .tofs-hamb { display: none; }
.desk-chip { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 4px; border-radius: 99px; background: var(--ctl); border: 1px solid var(--ctl-line); font-size: 12.5px; font-weight: 600; color: var(--ctl-ink); }
.tofs-theme-bar { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.theme-proxy::before, .dens-proxy::before { content: ""; width: 16px; height: 16px; background: currentColor; }
.theme-proxy::before { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'><path d='M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'><path d='M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z'/></svg>") center / contain no-repeat; }
.dens-proxy::before { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'><path d='M3 6h18M3 12h18M3 18h18'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'><path d='M3 6h18M3 12h18M3 18h18'/></svg>") center / contain no-repeat; }

.tofs-shell:has(.tofs-side) > #live-bar,
.tofs-shell:has(.tofs-side) > #page-main,
.tofs-shell:has(.tofs-side) > #ops-incident-wrap,
.tofs-shell:has(.tofs-side) > #cs-incident-wrap { padding-left: 28px; padding-right: 28px; }
.tofs-shell .tofs-ph h1, .tofs-shell .tofs-report h2 { color: var(--on) !important; font-weight: 700; letter-spacing: -.02em; }
.tofs-shell .tofs-ph h1 { font-size: 24px; }
.tofs-shell .tofs-ph p, .tofs-shell .tofs-muted { color: var(--on-m) !important; }
.tofs-shell .tofs-phase { text-transform: uppercase; letter-spacing: .06em; font-size: 11px; font-weight: 600; color: var(--on-f) !important; }
.tofs-shell .tofs-card, .tofs-shell .tofs-kpi, .tofs-shell .tofs-note, .tofs-shell .tofs-forecast-note {
  background: #fff !important; color: #1F2937 !important; border: 1px solid var(--line) !important; border-radius: 12px !important; box-shadow: none !important;
}
.tofs-shell .tofs-card { border-top: 3px solid #FCDD09 !important; }
.tofs-shell .tofs-kpi .label { color: #6B7280 !important; font-size: 12px; font-weight: 500; }
.tofs-shell .tofs-kpi .value { color: #102347 !important; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.tofs-shell .tofs-kpis .tofs-kpi:first-child { box-shadow: inset 0 3px 0 var(--orange) !important; }
.desk-cs .tofs-kpis .tofs-kpi:first-child { box-shadow: inset 0 3px 0 var(--purple) !important; }
.tofs-shell .tofs-card h3, .tofs-shell .tofs-note strong { color: #102347 !important; }
.tofs-shell .tofs-card .tofs-muted, .tofs-shell .tofs-note p, .tofs-shell .tofs-kpi .hint { color: #6B7280 !important; }
.tofs-shell .tofs-btn, .tofs-shell a.tofs-btn { background: #E86B40 !important; color: #fff !important; border: 0 !important; border-radius: 7px !important; font-weight: 600; }
.tofs-shell .tofs-alert { display: flex; gap: 12px; background: #fff !important; color: #1F2937 !important; border: 1px solid #DDE1E6 !important; border-left: 3px solid #4A7B9D !important; border-radius: 8px !important; }
.tofs-shell .tofs-alert.is-high { border-left-color: #C85757 !important; }
.tofs-shell .tofs-alert.is-medium { border-left-color: #D9A33F !important; }
.tofs-shell .tofs-alert.is-review {
  background: #E3E8F2 !important;
  color: #102347 !important;
  border: 1px solid #4A7B9D !important;
  border-left: 4px solid #4A7B9D !important;
  padding: 12px 14px !important;
}
.tofs-shell .tofs-alert strong { color: #1F2937 !important; }
.tofs-shell .tofs-alert p { color: #6B7280 !important; opacity: 1 !important; }
.tofs-shell .tofs-alert.is-review p { color: #102347 !important; font-weight: 600; font-size: 15px; line-height: 1.45; }
.tofs-shell #ops-bank-out .tofs-alert {
  background: #182245 !important;
  color: #FFFFFF !important;
  border: 1px solid #182245 !important;
  border-left: 4px solid #E86B40 !important;
  border-radius: 10px;
  padding: 12px 16px !important;
}
.tofs-shell #ops-bank-out th.dash-header[data-dash-column="outcome"],
.tofs-shell #ops-bank-out th.dash-header[data-dash-column="detail"] {
  background: #182245 !important;
  color: #FFFFFF !important;
  box-shadow: inset 0 0 0 999px #182245 !important;
}
.tofs-shell #ops-bank-out th.dash-header[data-dash-column="outcome"] *,
.tofs-shell #ops-bank-out th.dash-header[data-dash-column="detail"] *,
.tofs-shell #ops-bank-out th.dash-header[data-dash-column="outcome"],
.tofs-shell #ops-bank-out th.dash-header[data-dash-column="detail"] {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  fill: #FFFFFF !important;
}
.tofs-shell #ops-bank-out .tofs-alert p,
.tofs-shell #ops-bank-out .tofs-alert strong { color: #FFFFFF !important; font-weight: 600; font-size: 15px; line-height: 1.45; }
.tofs-shell .tofs-livebar { background: var(--ctl) !important; color: var(--on) !important; border: 1px solid var(--ctl-line) !important; border-radius: 8px; display: inline-flex; gap: 8px; padding: 7px 11px; margin-top: 14px; }

.tofs-shell .dash-spreadsheet-inner td, .tofs-shell .dash-spreadsheet-inner th { background-color: #fff !important; color: #1F2937 !important; -webkit-text-fill-color: #1F2937 !important; border-color: #EDEFF2 !important; }
.tofs-shell .dash-spreadsheet-inner thead th { background-color: #F9FAFB !important; color: #6B7280 !important; -webkit-text-fill-color: #6B7280 !important; font-size: 11px !important; letter-spacing: .04em; text-transform: uppercase; }
.tofs-shell .dash-spreadsheet-inner tbody tr:nth-child(even) td { background-color: #F9FAFB !important; }
.tofs-shell .dash-spreadsheet-inner td .dash-cell-value { background-color: transparent !important; color: inherit !important; -webkit-text-fill-color: inherit !important; }
.tofs-shell .dash-spreadsheet-inner td.cell--selected, .tofs-shell .dash-spreadsheet-inner td.focused { background-color: #FEF5F1 !important; color: #102347 !important; -webkit-text-fill-color: #102347 !important; }
.tofs-shell .dash-filter input, .tofs-shell .export { background: #fff !important; color: #1F2937 !important; -webkit-text-fill-color: #1F2937 !important; }
body.compact .dash-spreadsheet-inner td, body.compact .dash-spreadsheet-inner th { padding: 6px 10px !important; font-size: 12.5px !important; }
.tofs-shell .hit { outline: 2px solid #E86B40; outline-offset: 2px; }

@media (max-width: 900px) {
  .login-wrap { grid-template-columns: minmax(0,1fr); }
  .story { min-height: 0; padding: 28px 24px; }
  .story-body { padding: 28px 0 8px; }
  .story h2 { font-size: 28px; }
  .story-foot, .trail { display: none; }
  .story p { margin-bottom: 0; }
  .tofs-shell:has(.tofs-side) { grid-template-columns: minmax(0,1fr); }
  .tofs-shell .tofs-side { position: fixed; z-index: 80; width: min(300px, 88vw); padding-top: max(16px, env(safe-area-inset-top)); }
  .tofs-shell .tofs-hamb { display: grid; width: 44px; height: 44px; }
  #tocs-density { display: none !important; }
  .tofs-shell .tofs-side .nlink { min-height: 44px; }
  .tofs-shell .gs-wrap { max-width: none; flex: 1 1 100%; order: 5; }
  .tofs-shell .gs-wrap input { height: 44px; font-size: 16px; }
  .tofs-shell .tofs-top { flex-wrap: wrap; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); }
  .tofs-shell .tofs-top .top-r { flex-wrap: wrap; width: 100%; margin-left: 0; }
  .desk-chip span { display: none; }
  .tofs-shell .tofs-kpis, .tofs-shell .tofs-forecast-notes { grid-template-columns: 1fr !important; }
  .tofs-shell .dash-table-container, .tofs-shell .dash-spreadsheet-container { max-width: 100% !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  .tofs-shell .tofs-card, .tofs-shell .tofs-main, .tofs-shell .flowboard { max-width: 100%; min-width: 0; }
  .tofs-shell .tofs-incident-controls { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
  .tofs-shell .tofs-incident-controls input, .tofs-shell .tofs-incident-select { width: 100% !important; max-width: none !important; min-height: 44px; font-size: 16px; }
  .tofs-shell .tofs-incident-controls .tofs-btn, .login .btn.block { min-height: 44px; }
  .login input.in, .login .in { height: 44px; font-size: 16px; }
  .signin { padding: 20px 16px max(20px, env(safe-area-inset-bottom)); }
}

.tofs-shell .tofs-pay-split { flex: 1 0 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tofs-shell .tofs-pay-pair { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; border: 1px solid #E3E6EB; border-radius: 12px; background: #F7F8FB; }
.tofs-shell .tofs-pay-label { flex: 1 0 100%; color: #102347; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tofs-shell .tofs-pay-hint { flex: 1 0 100%; margin: 0; color: #4B5563; font-size: 13px; line-height: 1.45; }
.tofs-shell .tofs-pay-pair input { flex: 1 1 180px; max-width: none !important; }

/* Trace and settlement flow diagrams */
.tofs-shell .flowboard {
  background: linear-gradient(180deg, #fff 0%, #F7F8FB 100%) !important;
  color: #1F2937 !important;
  border: 1px solid #E3E6EB;
  border-top: 3px solid #FCDD09;
  border-radius: 16px;
  padding: 16px 16px 14px;
  margin: 4px 0 14px;
  box-shadow: 0 16px 36px rgba(16, 35, 71, .07);
}
.tofs-shell .flow-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.tofs-shell .flow-eye { margin: 0; color: #102347; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.tofs-shell .flowboard h3 { margin: 2px 0 0; color: #102347 !important; font-size: 18px; font-weight: 700; }
.tofs-shell .flow-legend { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.tofs-shell .flow-legend .lg { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: #F3F4F6; color: #4B5563; }
.tofs-shell .flow-legend .lg.is-done { background: #E5F6EC; color: #0E7A3D; }
.tofs-shell .flow-legend .lg.is-wait { background: #FBF1DC; color: #8A5F0E; }
.tofs-shell .flow-legend .lg.is-gap { background: #F3F4F6; color: #6B7280; }
.tofs-shell .flow-legend .lg.is-bad { background: #F9E3E3; color: #A13C3C; }
.tofs-shell .flow-ribbon { border-radius: 10px; padding: 8px 12px; margin: 0 0 12px; font-size: 14px; }
.tofs-shell .flow-ribbon.is-done { background: #E5F6EC; color: #0E7A3D; }
.tofs-shell .flow-ribbon.is-wait { background: #FBF1DC; color: #8A5F0E; }
.tofs-shell .flow-ribbon.is-gap, .tofs-shell .flow-ribbon.is-bad { background: #F9E3E3; color: #A13C3C; }
.tofs-shell .flow-meter { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: #F3F4F6; }
.tofs-shell .flow-meter .ok { background: #0E7A3D; display: block; height: 100%; }
.tofs-shell .flow-meter .flag { background: #C85757; display: block; height: 100%; }
.tofs-shell .flow-meter-key { margin: 6px 0 12px; color: #6B7280; font-size: 12.5px; }
.tofs-shell .flow-key, .tofs-shell .flow-ghost, .tofs-shell .flow-join { display: none !important; }
.tofs-shell .flow-cols {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding-top: 22px;
}
.tofs-shell .flow-cols::before, .tofs-shell .flow-cols::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 4%;
  height: 3px;
  border-radius: 99px;
  pointer-events: none;
}
.tofs-shell .flow-cols::before { right: 4%; background: #E3E6EB; }
.tofs-shell .flow-cols::after {
  width: var(--flow-fill, 0%);
  max-width: 92%;
  background: linear-gradient(90deg, #102347 0%, #FCDD09 100%);
  animation: flow-draw 1.05s cubic-bezier(.2,.7,.2,1) both;
}
.tofs-shell .flow-col { display: flex; flex-direction: column; position: relative; min-width: 0; z-index: 1; }
.tofs-shell .flow-node {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  width: 100%; text-align: left; border-radius: 14px; min-width: 0;
  height: auto !important; min-height: 118px; padding: 14px 12px 12px; cursor: pointer;
  border: 1px solid #E3E6EB; background: #fff; color: #1F2937;
  box-shadow: 0 8px 18px rgba(16, 35, 71, .05);
  transition: transform .16s ease, box-shadow .16s ease;
}
.tofs-shell .flow-node:hover { transform: translateY(-3px); box-shadow: 0 16px 28px rgba(16, 35, 71, .12); z-index: 2; }
.tofs-shell .flow-node:focus-visible { outline: 2px solid #FCDD09; outline-offset: 2px; }
.tofs-shell .flow-node strong { color: #102347; font-size: 13.5px; font-weight: 700; max-width: 100%; letter-spacing: -0.01em; }
.tofs-shell .flow-sub { color: #4B5563; font-size: 12.5px; line-height: 1.35; max-width: 100%; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; overflow-wrap: anywhere; }
.tofs-shell .flow-n {
  width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; background: #E8EEF8; color: #102347; flex: 0 0 auto;
}
.tofs-shell .flow-tag { margin-top: auto; font-style: normal; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #6B7280; font-weight: 700; }
.tofs-shell .flow-node.is-done { background: #fff; border-color: #E3E6EB; box-shadow: inset 0 3px 0 #0E7A3D, 0 8px 18px rgba(16, 35, 71, .05); }
.tofs-shell .flow-node.is-done .flow-n { background: #0E7A3D; color: #fff; }
.tofs-shell .flow-node.is-done .flow-tag { color: #0E7A3D; }
.tofs-shell .flow-step.on .flow-node.is-done { box-shadow: inset 0 3px 0 #0E7A3D, 0 0 0 2px #FCDD09, 0 12px 24px rgba(16, 35, 71, .12); }
.tofs-shell .flow-step.on .flow-node.is-done .flow-tag { color: #0E7A3D; }
.tofs-shell .flow-col.is-current .flow-node {
  background: #102347; border-color: #102347; color: #fff;
  animation: flow-here 2.4s ease-in-out infinite;
}
.tofs-shell .flow-col.is-current .flow-node strong,
.tofs-shell .flow-col.is-current .flow-sub,
.tofs-shell .flow-col.is-current .flow-tag { color: #fff; }
.tofs-shell .flow-col.is-current .flow-n { background: #FCDD09; color: #102347; }
.tofs-shell .flow-node.is-gap { background: #F8F9FB; border-style: dashed; border-color: #D5DBE3; box-shadow: none; }
.tofs-shell .flow-node.is-gap .flow-n { background: #EEF1F5; color: #6B7280; }
.tofs-shell .flow-node.is-bad { background: #fff; border-color: #F0C2C2; box-shadow: inset 3px 0 0 #C85757; }
.tofs-shell .flow-node.is-bad .flow-n { background: #C85757; color: #fff; }
.tofs-shell .flow-col.is-current .flow-node.is-bad { background: #3C1C1C; border-color: #3C1C1C; }
.tofs-shell .flow-step.on .flow-node { box-shadow: 0 0 0 2px #FCDD09, 0 12px 24px rgba(16, 35, 71, .12); }
.tofs-shell .flow-src { display: none !important; }
.tofs-shell .cfa-net {
  display: grid; grid-template-columns: minmax(160px, 210px) 28px minmax(0, 1fr) 28px minmax(140px, 180px);
  align-items: stretch; margin-top: 16px;
}
.tofs-shell .net-arm { align-self: center; height: 2px; background: linear-gradient(90deg, #E86B40, #F6D2C4, #E86B40); background-size: 200% 100%; animation: flow-arm 1.4s linear infinite; }
@keyframes flow-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes flow-draw { from { width: 0; } }
@keyframes flow-here {
  0%, 100% { box-shadow: 0 10px 22px rgba(16, 35, 71, .18); }
  50% { box-shadow: 0 0 0 4px rgba(252, 221, 9, .45), 0 14px 28px rgba(16, 35, 71, .22); }
}
@keyframes flow-arm { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.tofs-shell .flow-col:nth-child(1) { animation: flow-in .45s ease both; }
.tofs-shell .flow-col:nth-child(2) { animation: flow-in .45s ease .08s both; }
.tofs-shell .flow-col:nth-child(3) { animation: flow-in .45s ease .16s both; }
.tofs-shell .flow-col:nth-child(4) { animation: flow-in .45s ease .24s both; }
.tofs-shell .flow-col:nth-child(5) { animation: flow-in .45s ease .32s both; }
.tofs-shell .flow-col:nth-child(6) { animation: flow-in .45s ease .4s both; }
.tofs-shell .net-arm { background: linear-gradient(90deg, #102347, #FCDD09, #102347); background-size: 200% 100%; }
#flow-tip { position: fixed; z-index: 80; max-width: 280px; background: #102347; color: #fff; border-radius: 10px; padding: 9px 11px; font-family: "Times New Roman", Times, serif; font-size: 13.5px; line-height: 1.4; box-shadow: 0 12px 28px rgba(16, 35, 71, .22); pointer-events: none; }
#flow-tip[hidden] { display: none !important; }
.tofs-shell .cfa-rail {
  display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; padding: 10px; border-radius: 14px;
  border: 1px solid #E6E8EC; max-height: 280px; overflow: auto;
  background: radial-gradient(circle at 1px 1px, #E6E8EC 1px, transparent 0) 0 0 / 14px 14px, #FCFCFD;
}
.tofs-shell .cfa-chip { width: 168px; min-height: 78px; padding: 8px 10px; }
.tofs-shell .cfa-hub { min-height: 120px; justify-content: center; }
.tofs-shell .flow-note { margin: 8px 0 0; color: #6B7280; font-size: 12.5px; }
.tofs-shell .flow-drawer {
  margin-top: 12px; background: #FCFCFD; border: 1px dashed #E5E7EB; border-radius: 12px; padding: 12px 14px; min-height: 48px; color: #6B7280;
}
.tofs-shell .flow-drawer.is-live { background: #fff; border-style: solid; border-color: #E6E8EC; color: #1F2937; }
.tofs-shell .flow-drawer h4 { margin: 0 0 4px; color: #102347 !important; font-size: 15px; }
.tofs-shell .flow-intro { margin: 0; color: #4B5563; font-size: 13.5px; }
.tofs-shell .flow-list { margin: 8px 0 0; padding-left: 18px; color: #1F2937; }
.tofs-shell .flow-kv { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 10px 0 0; }
.tofs-shell .flow-kv > div { flex: 1 1 auto; min-width: min(100%, max-content); max-width: 100%; }
.tofs-shell .flow-kv dt { color: #6B7280; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.tofs-shell .flow-kv dd { margin: 2px 0 0; color: #102347; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.tofs-shell .tofs-incident-result.flow-linked { box-shadow: 0 0 0 2px #E86B40; border-radius: 12px; }

@media (max-width: 1280px) {
  .tofs-shell .flow-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
}
@media (max-width: 900px) {
  .tofs-shell .flow-cols { grid-template-columns: 1fr; gap: 12px; padding: 4px 0 4px 28px; }
  .tofs-shell .flow-cols::before, .tofs-shell .flow-cols::after { left: 10px; top: 8px; bottom: 8px; right: auto; width: 3px; height: auto; }
  .tofs-shell .flow-cols::after { width: 3px; height: var(--flow-fill, 0%); max-width: none; animation-name: flow-draw-y; }
  .tofs-shell .flow-head, .tofs-shell .flow-legend { flex-direction: column; align-items: flex-start; }
  .tofs-shell .tofs-pay-split { grid-template-columns: 1fr; }
  .tofs-shell .cfa-net { grid-template-columns: 1fr; gap: 8px; }
  .tofs-shell .net-arm { width: 2px; height: 16px; justify-self: center; }
  .tofs-shell .cfa-chip { width: calc(50% - 8px); }
}
@keyframes flow-draw-y { from { height: 0; } }
@media (prefers-reduced-motion: reduce) {
  .tofs-shell .flow-col, .tofs-shell .flow-node, .tofs-shell .flow-cols::after, .tofs-shell .net-arm { animation: none !important; }
}

.tofs-shell .ops-nbc-frame {
  width: 100%;
  height: auto;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: block;
  overflow: hidden;
}

@media (max-width: 900px) {
  html, body { overflow-x: clip; }
  .tofs-shell .tofs-ph h1 { font-size: 22px; overflow-wrap: anywhere; }
  .tofs-shell .cfa-chip { width: calc(50% - 8px); max-width: 100%; }
  .tofs-shell .ops-nbc-frame { height: auto; }
}

/* Desk rhythm: tighter sections, solid cards, a short entrance. */
.tofs-shell.tofs-theme-light:has(.tofs-side) > #page-main {
  padding-top: 16px;
  padding-left: 22px;
  padding-right: 22px;
}
.tofs-shell.tofs-theme-light:has(.tofs-side) .tofs-ph { margin: 0 0 12px; }
.tofs-shell.tofs-theme-light:has(.tofs-side) .tofs-ph h1 { font-size: 22px; line-height: 1.15; }
.tofs-shell.tofs-theme-light:has(.tofs-side) .tofs-ph p { margin-top: 4px; max-width: 68ch; }
.tofs-shell.tofs-theme-light:has(.tofs-side) .tofs-report {
  margin: 16px 0 6px;
}
.tofs-shell.tofs-theme-light:has(.tofs-side) .tofs-report h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 16px !important;
}
.tofs-shell.tofs-theme-light:has(.tofs-side) .tofs-report h2::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: #E86B40;
  flex: none;
}
.tofs-shell.tofs-theme-light:has(.tofs-side) .tofs-report > .tofs-muted { margin: 0 0 10px; max-width: 72ch; }
.tofs-shell.tofs-theme-light:has(.tofs-side) .tofs-kpis {
  gap: 10px !important;
  margin: 8px 0 12px !important;
}
.tofs-shell.tofs-theme-light:has(.tofs-side) .tofs-kpi {
  padding: 12px 14px !important;
  transition: border-color .2s ease;
}
.tofs-shell.tofs-theme-light:has(.tofs-side) .tofs-kpi:hover {
  transform: none;
  border-color: #E86B40 !important;
}
.tofs-shell.tofs-theme-light:has(.tofs-side) .tofs-card {
  padding: 12px 14px !important;
  margin-bottom: 12px !important;
}
.tofs-shell.tofs-theme-light:has(.tofs-side) .tofs-card h3 { margin: 0 0 6px; font-size: 15px; }
.tofs-shell.tofs-theme-light:has(.tofs-side) .dash-spreadsheet-inner td,
.tofs-shell.tofs-theme-light:has(.tofs-side) .dash-spreadsheet-inner th {
  padding: 6px 10px !important;
  font-size: 13px !important;
}
.tofs-shell.tofs-theme-light:has(.tofs-side) .day-desk { margin: 2px 0 14px; }
.tofs-shell.tofs-theme-light:has(.tofs-side) .day-head h2 { font-size: 18px; margin: 0; }
.tofs-shell.tofs-theme-light:has(.tofs-side) .day-head p { margin: 2px 0 0; }
.tofs-shell.tofs-theme-light:has(.tofs-side) .day-grid { gap: 10px; margin: 10px 0 12px; }
.tofs-shell.tofs-theme-light:has(.tofs-side) .day-tile {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title value" "hint value" "more value";
  column-gap: 16px;
  row-gap: 2px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  border-top: 3px solid #FCDD09;
  transition: border-color .2s ease, transform .2s ease;
}
.tofs-shell.tofs-theme-light:has(.tofs-side) .day-tile strong { grid-area: title; font-size: 14px; }
.tofs-shell.tofs-theme-light:has(.tofs-side) .day-hint { grid-area: hint; }
.tofs-shell.tofs-theme-light:has(.tofs-side) .day-tile .day-more { grid-area: more; justify-self: start; margin-top: 4px; padding: 0; }
.tofs-shell.tofs-theme-light:has(.tofs-side) .day-value { grid-area: value; font-size: 28px; align-self: center; }
.tofs-shell.tofs-theme-light:has(.tofs-side) .day-tile:hover {
  border-color: #E86B40;
  transform: translateY(-1px);
}
.tofs-shell.tofs-theme-light:has(.tofs-side) .tofs-animate {
  animation: desk-in .38s ease both;
}
@keyframes desk-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tofs-shell .tofs-animate,
  .tofs-shell .day-tile,
  .tofs-shell .tofs-kpi { animation: none !important; transition: none !important; }
}

/* Signed-in pages use the sign-in split: navy rail, white sheet, orange steps. */
.tofs-shell.tofs-theme-light:has(.tofs-side) {
  background: #fff !important;
}
.tofs-shell.tofs-theme-light:has(.tofs-side) .tofs-side {
  background: #102347 !important;
  border-right: 0 !important;
  color: #fff;
}
.tofs-shell.tofs-theme-light .tofs-side::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -130px;
  top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,107,64,.34), transparent 68%);
  pointer-events: none;
}
.tofs-shell.tofs-theme-light .tofs-side > * { position: relative; z-index: 1; }
.tofs-shell.tofs-theme-light .tofs-side .brand b,
.tofs-shell.tofs-theme-light .tofs-side .side-foot .who b { color: #fff !important; }
.tofs-shell.tofs-theme-light .tofs-side .brand span,
.tofs-shell.tofs-theme-light .tofs-side .side-foot .who span,
.tofs-shell.tofs-theme-light .tofs-side .nlabel { color: rgba(255,255,255,.55) !important; }
.tofs-shell.tofs-theme-light .tofs-side .nlink { color: rgba(255,255,255,.82) !important; }
.tofs-shell.tofs-theme-light .tofs-side .nlink .ic { background: rgba(255,255,255,.55); }
.tofs-shell.tofs-theme-light .tofs-side .nlink:hover { background: rgba(255,255,255,.08) !important; color: #fff !important; }
.tofs-shell.tofs-theme-light .tofs-side .nlink.on {
  background: rgba(255,255,255,.1) !important;
  color: #fff !important;
}
.tofs-shell.tofs-theme-light .tofs-side .nlink.on .ic { background: #E86B40 !important; }
.tofs-shell.tofs-theme-light .tofs-side .side-foot { border-top-color: rgba(255,255,255,.12); }
.tofs-shell.tofs-theme-light .tofs-side .side-foot .btn.ghost {
  background: transparent !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.28) !important;
}
.tofs-shell.tofs-theme-light:has(.tofs-side) .tofs-ph,
.tofs-shell.tofs-theme-light:has(.tofs-side) .day-desk,
.tofs-shell.tofs-theme-light:has(.tofs-side) .tofs-report {
  background: #fff;
  border: 1px solid #E6E8EC;
  border-radius: 12px;
  padding: 18px 18px 14px;
}
.tofs-shell.tofs-theme-light:has(.tofs-side) .tofs-ph { margin: 0 0 12px; }
.tofs-shell.tofs-theme-light:has(.tofs-side) .tofs-ph h1 { font-size: 28px; letter-spacing: -.03em; }
.page-trail {
  list-style: none;
  display: flex;
  gap: 8px 18px;
  margin: 18px 0 2px;
  padding: 0;
  position: relative;
  overflow-x: auto;
}
.page-trail::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 15px;
  height: 2px;
  background: linear-gradient(90deg, #E86B40, #8B4F7F);
  opacity: .45;
}
.page-trail li { flex: 1 0 120px; min-width: 120px; position: relative; z-index: 1; }
.page-trail a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}
.page-trail .node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #E86B40;
  display: grid;
  place-items: center;
  color: #E86B40;
}
.page-trail .node .ic { width: 15px; height: 15px; background: currentColor; }
.page-trail li:last-child .node { background: #E86B40; color: #fff; }
.page-trail .t { font-size: 13.5px; font-weight: 700; color: #102347; line-height: 1.2; }
.page-trail .s { font-size: 12px; color: #6B7280; }
.page-trail a:hover .node { box-shadow: 0 0 0 4px #FBE8DF; }
.tofs-shell.tofs-theme-light:has(.tofs-side) .day-value {
  min-width: 42px;
  height: 36px;
  padding: 0 8px;
  border-radius: 999px;
  border: 2px solid #E86B40;
  display: grid;
  place-items: center;
  color: #C9552D;
  font-size: 16px;
  background: #fff;
}

/* Fine desk: sans type, hairline tables, quieter cards. Sign-in stays Times. */
.tofs-shell.tofs-theme-light:has(.tofs-side),
.tofs-shell.tofs-theme-light:has(.tofs-side) button,
.tofs-shell.tofs-theme-light:has(.tofs-side) input,
.tofs-shell.tofs-theme-light:has(.tofs-side) select,
.tofs-shell.tofs-theme-light:has(.tofs-side) h1,
.tofs-shell.tofs-theme-light:has(.tofs-side) h2,
.tofs-shell.tofs-theme-light:has(.tofs-side) h3,
.tofs-shell.tofs-theme-light:has(.tofs-side) .dash-spreadsheet-inner td,
.tofs-shell.tofs-theme-light:has(.tofs-side) .dash-spreadsheet-inner th,
.tofs-shell.tofs-theme-light:has(.tofs-side) .dash-spreadsheet-menu,
.tofs-shell.tofs-theme-light:has(.tofs-side) .export {
  font-family: "Source Sans 3", "Segoe UI", sans-serif !important;
}
.tofs-shell.tofs-theme-light:has(.tofs-side) .tofs-ph,
.tofs-shell.tofs-theme-light:has(.tofs-side) .day-desk,
.tofs-shell.tofs-theme-light:has(.tofs-side) .tofs-report,
.tofs-shell.tofs-theme-light:has(.tofs-side) .tofs-card {
  border-radius: 10px !important;
  box-shadow: none !important;
}
.tofs-shell.tofs-theme-light:has(.tofs-side) .tofs-ph { padding: 14px 16px 12px !important; }
.tofs-shell.tofs-theme-light:has(.tofs-side) .tofs-ph h1 { font-size: 22px !important; font-weight: 700; letter-spacing: -.03em; }
.tofs-shell.tofs-theme-light:has(.tofs-side) .tofs-card { border-top-width: 2px !important; padding: 10px 12px !important; }
.tofs-shell.tofs-theme-light:has(.tofs-side) .day-tile { border-top-width: 2px; padding: 10px 12px; border-radius: 10px; }
.tofs-shell.tofs-theme-light:has(.tofs-side) .day-value { height: 30px; font-size: 14px; }
.tofs-shell.tofs-theme-light:has(.tofs-side) .dash-table-container {
  border: 1px solid #E6E8EC;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.tofs-shell.tofs-theme-light:has(.tofs-side) .dash-spreadsheet-inner td,
.tofs-shell.tofs-theme-light:has(.tofs-side) .dash-spreadsheet-inner th {
  padding: 5px 10px !important;
  font-size: 12.5px !important;
  line-height: 1.35 !important;
  font-variant-numeric: tabular-nums;
}
.tofs-shell.tofs-theme-light:has(.tofs-side) .dash-spreadsheet-inner thead th {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: .06em;
  background: #F4F6F8 !important;
  color: #6B7280 !important;
}
.tofs-shell.tofs-theme-light:has(.tofs-side) .dash-spreadsheet-inner tbody tr:hover td {
  background: #FEF5F1 !important;
}
.tofs-shell.tofs-theme-light:has(.tofs-side) .page-trail { margin-top: 12px; }
.tofs-shell.tofs-theme-light:has(.tofs-side) .page-trail .node { width: 26px; height: 26px; }
.tofs-shell.tofs-theme-light:has(.tofs-side) .page-trail::before { top: 12px; }
.tofs-shell.tofs-theme-light:has(.tofs-side) .page-trail .t { font-size: 12.5px; }
.tofs-shell.tofs-theme-light:has(.tofs-side) .tofs-kpi .value { font-variant-numeric: tabular-nums; font-size: 20px; }
.tofs-shell.tofs-theme-light:has(.tofs-side) .ops-kpi-four {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 0;
}
.tofs-shell.tofs-theme-light:has(.tofs-side) .ops-nbc-main {
  border-top: 3px solid #FCDD09;
  margin-top: 12px;
}
.tofs-shell.tofs-theme-light:has(.tofs-side) .ops-nbc-main h2 {
  margin: 0 0 4px;
  font-size: 20px;
}
@media (max-width: 1100px) {
  .tofs-shell.tofs-theme-light:has(.tofs-side) .ops-kpi-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tofs-shell.tofs-theme-light:has(.tofs-side) .ops-kpi-four { grid-template-columns: 1fr; }
}
.tofs-shell:has(.tofs-side) > #live-bar {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 12px;
  padding-bottom: 4px;
}
.tofs-shell .tofs-livebar {
  margin: 0 auto;
}

/* Every Dash table gets a visible Export button. */
.tofs-shell .dash-spreadsheet-menu {
  display: flex !important;
  justify-content: flex-end;
  align-items: center;
  min-height: 36px;
  padding: 0 0 8px !important;
}
.tofs-shell .dash-table-container button.export,
.tofs-shell .dash-spreadsheet-menu button.export {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 30px !important;
  min-width: 88px;
  padding: 0 14px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: #E86B40 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-family: "Source Sans 3", "Segoe UI", sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  cursor: pointer;
}
.tofs-shell .dash-table-container button.export:hover,
.tofs-shell .dash-spreadsheet-menu button.export:hover {
  background: #C9552D !important;
}

.tofs-shell .tofs-incident-controls:has(.tofs-tra-form) {
  margin-left: 0;
  display: block;
}
html[data-tocs-pane] #page-main { display: none !important; }
html[data-tocs-pane="incident-tools"] #ops-incident-wrap,
html[data-tocs-pane="cs-incident-tools"] #cs-incident-wrap { display: block !important; }
.tofs-shell .ops-locked .desk-pane { display: none !important; }
.tofs-shell .ops-locked .desk-pane.is-on { display: block !important; }
.tofs-shell .tofs-tra-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: none;
}
.tofs-shell .tofs-tra-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tofs-shell .tofs-tra-toolbar .tofs-btn {
  height: 40px;
  min-height: 40px;
}
.tofs-shell .tofs-tra-upload {
  display: inline-flex;
  align-items: center;
  width: auto !important;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #C9C3B4;
  border-radius: 8px;
  background: #fff;
  color: #102347;
  font-weight: 600;
  font-size: 14px;
  line-height: 40px;
  cursor: pointer;
  box-sizing: border-box;
}
.tofs-shell .tofs-tra-upload:hover { border-color: #102347; }
.tofs-shell .tofs-tra-filehint {
  color: #6B6456;
  font-size: 13px;
}
.tofs-shell .tofs-btn-quiet {
  background: #fff !important;
  color: #102347 !important;
  border: 1px solid #C9C3B4 !important;
}
.tofs-shell .tofs-tra-form input.tofs-tra-search {
  flex: 1 1 280px !important;
  max-width: none !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1px solid #D9D3C4 !important;
  border-radius: 8px !important;
  background: #fff !important;
  font-size: 15px !important;
  color: #102347 !important;
  box-sizing: border-box;
}
.tofs-shell .tofs-tra-form input.tofs-tra-search:focus {
  outline: none;
  border-color: #4A7B9D !important;
  box-shadow: 0 0 0 3px rgba(74, 123, 157, 0.15);
}
.tofs-shell .tofs-tra-form .tofs-tra-band { flex: 0 0 170px; width: 170px; max-width: 170px; }
.tofs-shell .tofs-tra-form .tofs-tra-status { flex: 0 0 190px; width: 190px; max-width: 190px; }
.tofs-shell .tofs-tra-selectbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 8px 8px 8px 14px;
  background: #F7F4EC;
  border: 1px solid #ECE8DE;
  border-radius: 10px;
}
.tofs-shell .tofs-tra-all label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 600;
  color: #102347;
  cursor: pointer;
  white-space: nowrap;
}
.tofs-shell .tofs-tra-all input[type="checkbox"],
.tofs-shell .tofs-tra-form .dash-select-cell input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #E86B40;
  cursor: pointer;
}
.tofs-shell .tofs-tra-count { color: #4B5568; font-size: 14px; white-space: nowrap; }
.tofs-shell .tofs-tra-note { color: #B4541F; font-size: 14px; }
.tofs-shell .tofs-tra-note:empty { display: none; }
.tofs-shell .tofs-tra-columns {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 8px 4px 4px;
}
.tofs-shell .tofs-tra-columns-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #102347;
}
.tofs-shell .tofs-tra-cols { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.tofs-shell .tofs-tra-cols label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #102347;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.tofs-shell .tofs-tra-cols input { width: 15px; height: 15px; accent-color: #E86B40; }
.tofs-shell .tofs-tra-columns .tofs-btn { margin-left: auto; height: 36px; min-height: 36px; }
.tofs-shell .tofs-tra-send { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.tofs-shell .tofs-tra-send .tofs-btn { height: 40px; min-height: 40px; min-width: 132px; }
.tofs-shell .tofs-tra-form .dash-table-container {
  border: 1px solid #ECE8DE;
  border-radius: 10px;
  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;
  background: #fff;
  box-shadow: none !important;
}
.tofs-shell .tofs-tra-form .dash-spreadsheet-menu { display: none !important; }
.tofs-shell .tofs-tra-form .dash-spreadsheet-container { border: 0 !important; border-radius: 0; }
.tofs-shell .tofs-tra-form .dash-spreadsheet-container td.dash-select-cell,
.tofs-shell .tofs-tra-form .dash-spreadsheet-container th.dash-select-header {
  width: 44px !important;
  min-width: 44px !important;
  text-align: center !important;
}
.tofs-shell .tofs-tra-form .dash-spreadsheet tr:hover td { background: #FBF8F1 !important; }
.tofs-shell .tofs-tra-form .previous-next-container { padding: 8px 10px; }
@media (max-width: 760px) {
  .tofs-shell .tofs-tra-send { margin-left: 0; width: 100%; }
  .tofs-shell .tofs-tra-form .tofs-tra-band,
  .tofs-shell .tofs-tra-form .tofs-tra-status { flex: 1 1 100%; width: 100%; max-width: none; }
}
.tofs-shell .tofs-tra-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tofs-shell .tofs-tra-form .tofs-incident-select {
  flex: 0 0 168px;
  width: 168px;
  max-width: 168px;
}
.tofs-shell .tofs-tra-form .Select-control,
.tofs-shell .tofs-tra-form .dash-dropdown {
  min-height: 40px;
}
.tofs-shell .tofs-tra-form input.tofs-tra-amount {
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: none !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  margin: 0 !important;
  box-sizing: border-box;
}
.tofs-shell .tofs-tra-invoices {
  width: 100% !important;
  max-width: none !important;
  height: 88px !important;
  min-height: 88px !important;
  max-height: 88px !important;
  margin: 0 !important;
  box-sizing: border-box;
  resize: vertical;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.4;
}
.tofs-shell .tofs-tra-row > div:has(.tofs-tra-upload) {
  flex: 1 1 auto;
  min-width: 0;
}
.tofs-shell .tofs-tra-upload {
  width: 100%;
  box-sizing: border-box;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-height: 40px;
  border: 1px dashed #D9A33F;
  border-radius: 8px;
  background: #fff;
  color: #102347;
  font-weight: 600;
  cursor: pointer;
}
.tofs-shell .tofs-tra-upload-label { pointer-events: none; }
.tofs-shell .tofs-tra-row .tofs-btn {
  flex: 0 0 auto;
  height: 40px;
  align-self: center;
}
@media (max-width: 700px) {
  .tofs-shell .tofs-tra-row { flex-wrap: wrap; }
  .tofs-shell .tofs-tra-form .tofs-incident-select,
  .tofs-shell .tofs-tra-form input.tofs-tra-amount { flex: 1 1 100% !important; width: 100% !important; max-width: none !important; }
}

/* Maker-Checker PIN for the TANCIS send */
.tpin-scrim { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; background: rgba(16, 35, 71, 0.55); backdrop-filter: blur(2px); }
.tpin { width: 340px; max-width: calc(100vw - 32px); padding: 22px 22px 18px; border-radius: 22px; background: #182245; color: #FFFFFF; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); text-align: center; font-family: "Source Sans 3", "Segoe UI", sans-serif; }
.tpin-brand { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #FCDD09; }
.tpin-what { margin: 12px 0 14px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); border-left: 3px solid #E86B40; text-align: left; }
.tpin-what small { display: block; font-size: 11px; color: #AEB7CF; text-transform: uppercase; letter-spacing: 0.06em; }
.tpin-what b { display: block; margin-top: 3px; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: #FFFFFF; }
.tpin h3 { margin: 4px 0 4px; font-size: 18px; font-weight: 700; color: #FFFFFF !important; }
.tpin-sub { margin: 0 0 14px; font-size: 13px; line-height: 1.4; color: #C7CEE0 !important; }
.tpin-dots { display: flex; justify-content: center; gap: 14px; margin: 6px 0 6px; }
.tpin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #AEB7CF; }
.tpin-dots i.f { background: #FCDD09; border-color: #FCDD09; }
.tpin-dots.shake { animation: tpin-shake 0.32s linear; }
@keyframes tpin-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.tpin-err { min-height: 20px; margin-bottom: 8px; font-size: 12.5px; color: #FFB4A1; }
.tpin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 6px; }
.tpin-pad button { height: 54px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, 0.1); color: #FFFFFF; font-size: 22px; font-weight: 600; cursor: pointer; }
.tpin-pad button:hover { background: rgba(255, 255, 255, 0.18); }
.tpin-pad button.ghost { background: transparent; font-size: 20px; }
.tpin-foot { display: flex; justify-content: center; margin-top: 14px; }
.tpin-btn { min-width: 120px; height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.35); background: transparent; color: #FFFFFF; font-weight: 600; cursor: pointer; }
.tpin-btn:hover { border-color: #E86B40; color: #E86B40; }
.tpin-lock { font-size: 34px; margin: 6px 0; }
.tpin-sub b { color: #FCDD09; font-weight: 700; }
.tpin .tpin-input { box-sizing: border-box; width: 100%; height: 44px; margin: 2px 0 6px; padding: 0 14px; border-radius: 12px; border: 2px solid #FFFFFF !important; background: #FFFFFF !important; color: #102347 !important; -webkit-text-fill-color: #102347 !important; caret-color: #102347; font-family: "Source Sans 3", "Segoe UI", sans-serif; font-size: 15px; font-weight: 600; outline: none; }
.tpin .tpin-input::placeholder { color: #7A849C !important; -webkit-text-fill-color: #7A849C !important; font-weight: 400; }
.tpin .tpin-input:focus { border-color: #FCDD09 !important; }
.tpin .tpin-input:-webkit-autofill,
.tpin .tpin-input:-webkit-autofill:hover,
.tpin .tpin-input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset !important; box-shadow: 0 0 0 1000px #FFFFFF inset !important; -webkit-text-fill-color: #102347 !important; caret-color: #102347; }
.tpin-foot { gap: 10px; }
.tpin-btn.tpin-go { background: #E86B40; border-color: #E86B40; color: #FFFFFF; }
.tpin-btn.tpin-go:hover { background: #D45A31; color: #FFFFFF; }
.tpin-btn:disabled { opacity: 0.6; cursor: default; }
.tpin-link { display: block; margin: 12px auto 0; border: 0; background: none; color: #FCDD09; font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer; }
