/* Neutral banking desktop: persistent customer sidebar and dense chart workspace. */
:root {
  font-family: Arial, 'Segoe UI', sans-serif;
  font-size: 13px;
  color: #263d54;
  background: #e7eaf0;
  --border: #bcc9d8;
  --muted: #65758a;
  --blue: #28679c;
}
button {
  border-radius: 2px;
  font-weight: 400;
  padding: 5px 10px;
  font-size: 12px;
}
.topbar {
  height: 34px;
  padding: 0 10px;
  background: linear-gradient(#304f76, #234367);
  gap: 13px;
  border-bottom: 1px solid #172e4c;
}
.brand {
  font-size: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
}
.brand .brand-monogram {
  font: bold 12px Arial;
  background: #8d354a;
  border: 1px solid #bc7182;
  border-radius: 2px;
  padding: 4px 6px;
  margin: 0;
  color: white;
}
.topbar > strong {
  font-size: 12px;
  font-weight: 400;
}
.topbar .avatar {
  width: 22px;
  height: 22px;
  font-size: 10px;
}
.topmeta {
  font-size: 11px;
}
.divider {
  opacity: 0.6;
}
.commandbar {
  height: 32px;
  min-height: 32px;
  padding: 2px 9px;
  background: linear-gradient(#fafbfc, #dce3ec);
  border-bottom: 1px solid #afbdcf;
  gap: 2px;
}
.commandbar button {
  padding: 4px 12px;
  border-right: 1px solid #c9d1dd;
  font-size: 12px;
}
.commandbar button.active {
  background: #fff;
  border: 1px solid #b6c5d8;
}
.commandbar > span:last-child {
  font-size: 11px;
}
.shell {
  min-height: calc(100vh - 66px);
}
.rail {
  width: 204px;
  background: linear-gradient(90deg, #e5edf7, #f0f4fa);
  border-right: 1px solid #adbed2;
  gap: 0;
  padding: 0;
  align-items: stretch;
}
.rail .customer-banner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 13px 12px;
  border: 0;
  border-bottom: 1px solid #b7c8dc;
  border-radius: 0;
  background: #e4edf8;
  min-height: 240px;
}
.customer-banner > .spacer {
  display: none;
}
.customer-portrait {
  align-self: center;
}
.customer-portrait small {
  font-size: 9px;
  margin-top: 3px;
}
#customer-photo-frame {
  width: 72px;
  height: 72px;
  border-radius: 2px;
}
.customer-title {
  width: 100%;
}
.customer-title .eyebrow {
  font-size: 9px;
  letter-spacing: 0.7px;
  color: #59718b;
}
.customer-title h1 {
  font-size: 19px;
  color: #174a80;
  line-height: 1.2;
  margin: 4px 0 7px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
#demographics {
  font-size: 11px;
  line-height: 1.7;
  color: #405974;
}
.identity {
  align-items: flex-start;
  max-width: 100%;
  gap: 0;
  font-size: 12px;
  color: #1d5080;
}
.identity span {
  white-space: normal;
}
.railmark {
  font-size: 10px;
  padding: 9px 12px;
  background: #d3dfef;
  color: #48617c;
  border-bottom: 1px solid #b9cadf;
  letter-spacing: 0.4px;
}
.rail button {
  font-size: 14px;
  padding: 7px 10px;
  min-height: 31px;
  gap: 7px;
  border-bottom: 1px solid #d7e1ed;
  color: #264e78;
}
.rail button span {
  font-size: 12px;
}
.rail button.selected {
  background: #fff;
  border-left: 3px solid #386fa6;
  color: #164979;
  font-weight: 700;
}
.rail button:hover {
  background: #fff;
}
.rail [data-section] {
  padding-left: 22px;
}
.rail-section {
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 0.5px;
  padding: 13px 12px 6px;
  color: #6b7f96;
}
.railbottom {
  font-size: 10px;
  line-height: 1.8;
  padding: 12px;
  color: #6a7d93;
}
main {
  padding: 0 10px;
  min-width: 0;
  background: #eef1f5;
}
.workspace-tabs {
  margin: 0 -10px 0;
  padding: 4px 8px 0;
  min-height: 34px;
  background: #d4deec;
  border-bottom: 1px solid #aebed2;
}
.workspace-tabs button {
  font-size: 12px;
  padding: 7px 13px;
  border-radius: 3px 3px 0 0;
  color: #365a82;
}
.workspace-tabs button.active {
  border-color: #adbed2;
  background: #fff;
  border-top: 3px solid #477bae;
  padding-top: 5px;
}
.workspace-label {
  font-size: 9px;
  color: #526c88;
}
.workspace-context {
  font-size: 10px;
}
.workspace {
  margin-top: 9px;
  gap: 14px;
}
.chart {
  border: 1px solid #aebed1;
  border-radius: 0;
  min-height: 780px;
}
.chart-context {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fc;
  padding: 5px 10px;
  border-bottom: 1px solid #c6d1df;
  color: #61748c;
  font-size: 10px;
}
.chart-context span:first-child {
  font-weight: bold;
  color: #3b5573;
}
.tabs {
  padding: 0 7px;
  background: #e5ebf4;
  gap: 2px;
  border-bottom: 1px solid #aebfd5;
}
.tabs button {
  font-size: 12px;
  padding: 8px 10px;
  color: #3c5e81;
}
.tabs button.active {
  background: #fff;
  border-bottom: 2px solid #315f93;
  color: #153e6c;
  font-weight: 700;
}
.view {
  padding: 10px;
}
.section-title {
  margin-bottom: 9px;
  padding-bottom: 7px;
  border-bottom: 1px solid #c7d3e3;
}
.section-title h2 {
  font-size: 16px;
  font-weight: 600;
  color: #254d7a;
}
.summary-context {
  font-size: 10px;
  color: #77879a;
}
.section-band {
  padding: 5px 8px;
  background: #d5e4f4;
  border: 1px solid #b6cbe2;
  font-size: 12px;
  font-weight: 600;
  color: #244d7c;
  display: flex;
  justify-content: space-between;
}
.section-band span {
  font-size: 10px;
  font-weight: 400;
  color: #637993;
}
.vitals {
  border-radius: 0;
  border-top: 0;
  margin-bottom: 10px;
  background: #f9fbfd;
}
.vitals > div {
  padding: 8px 10px;
  border-color: #ccd8e5;
}
.vitals span {
  font-size: 10px;
  margin-bottom: 5px;
  color: #526a84;
}
.vitals strong {
  font-size: 19px;
  font-weight: 600;
  color: #284b74;
}
.vitals small {
  font-size: 9px;
  margin-top: 2px;
}
.banking-grid {
  gap: 9px;
}
.card {
  border: 1px solid #b9cbe0;
  border-radius: 0;
}
.card h3 {
  padding: 5px 8px;
  background: linear-gradient(#e1ecf9, #cfdef0);
  border-bottom: 1px solid #b8cce4;
  color: #244f7f;
  font-size: 12px;
  font-weight: 600;
}
.count {
  font-size: 10px;
  border-radius: 2px;
  padding: 0 4px;
  background: #f5f8fc;
}
.row {
  padding: 8px;
  border-bottom: 1px solid #dde5ef;
  gap: 8px;
}
.row:nth-child(odd) {
  background: #f8fafd;
}
.row strong {
  font-size: 12px;
  font-weight: 500;
  color: #254e7c;
}
.row small {
  font-size: 10px;
  margin-top: 3px;
  color: #61748a;
  line-height: 1.5;
}
.tag {
  font-size: 9px;
  border-radius: 2px;
  padding: 2px 5px;
  background: #edf4ea;
  color: #426b43;
}
.date-tile {
  padding: 4px 9px;
  border-radius: 2px;
  font-size: 9px;
}
.date-tile strong {
  font-size: 17px;
}
.upcoming {
  margin-top: 9px;
}
.row .avatar.small {
  width: 28px;
  height: 28px;
  font-size: 10px;
}
.workflow {
  padding: 7px 10px;
  gap: 8px;
}
.workflow strong {
  font-size: 12px;
  margin-bottom: 2px;
}
.workflow span {
  font-size: 11px;
}
.workflow .status-icon {
  font-size: 16px;
}

label {
  font-size: 12px;
  margin: 12px 0 8px;
  color: #354f6b;
}
input,
textarea {
  border-radius: 1px;
  font-size: 12px;
  padding: 8px;
  margin-top: 5px;
  line-height: 1.5;
}
.note-footer {
  margin-top: 12px;
}
.muted,
.pill {
  font-size: 10px;
}
.pill {
  border-radius: 2px;
  padding: 3px 6px;
}
.history-item {
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 0;
}
.history-item p {
  font-size: 12px;
}
.page-footer {
  padding: 6px 0;
  font-size: 9px;
  gap: 10px;
}
.page-footer > span {
  font-size: 9px;
}
.native-desktop {
  border-radius: 0;
  border-color: #afc0d3;
  border-top: 2px solid #648aa9;
}
.native-heading {
  background: linear-gradient(#f9fbfd, #e5edf6);
  padding: 4px 9px;
  min-height: 32px;
  border-bottom: 1px solid #b7c9dd;
}
.native-heading strong {
  font-size: 12px;
}
.native-heading button {
  font-size: 11px;
  min-height: 23px;
  padding: 3px 7px;
}
.panel-resizer::after {
  background: #92a8bf;
}
@media (max-width: 1200px) {
  .rail {
    width: 180px;
  }
  .customer-title h1 {
    font-size: 17px;
  }
  .banking-grid {
    grid-template-columns: 1fr;
  }
  .workspace-label,
  .workspace-context {
    display: none;
  }
}
@media (max-width: 1000px) {
  .chart {
    min-height: 500px;
  }
  .native-mode .cti-stack {
    grid-row: 1;
  }
  .rail {
    width: 174px;
  }
}
@media (max-width: 780px) {
  .topbar .brand {
    font-size: 12px;
  }
  .topbar {
    gap: 8px;
  }
  .topmeta {
    display: none;
  }
  .rail {
    width: 144px;
  }
  .rail .customer-banner {
    padding: 10px;
    min-height: 220px;
  }
  .rail button {
    justify-content: flex-start;
    padding: 7px 8px;
  }
  .rail button span {
    display: inline;
    font-size: 11px;
  }
  .railmark,
  .railbottom {
    display: block;
  }
  .railmark {
    font-size: 9px;
  }
  .rail [data-section] {
    padding-left: 12px;
  }
  .customer-title h1 {
    font-size: 16px;
  }
  #demographics {
    font-size: 10px;
  }
  .customer-banner .identity {
    width: auto;
    font-size: 11px;
  }
  .workspace-tabs button {
    padding: 7px;
    font-size: 11px;
  }
  .commandbar > span:last-child {
    display: none;
  }
  .commandbar button {
    padding: 4px 6px;
    font-size: 11px;
  }
  main {
    padding: 0 8px;
  }
  .workspace-tabs {
    margin: 0 -8px;
  }
  .view {
    padding: 8px;
  }
  .tabs button {
    font-size: 11px;
    padding: 7px;
  }
  .native-desktop.floating {
    min-width: min(300px, 96vw);
  }
}
/* Fit the application to the viewport; scroll chart content inside its pane. */
html {
  height: 100%;
  overflow: hidden;
}
body {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.topbar,
.commandbar {
  flex-shrink: 0;
}
.shell {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.rail {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.rail > * {
  flex-shrink: 0;
}
main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.workspace-tabs,
.page-footer {
  flex-shrink: 0;
}
.workspace {
  flex: 1;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  margin-bottom: 0;
}
.chart {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chart > .tabs,
.chart-context,
.workflow,
#notice,
#return-call {
  flex-shrink: 0;
}
.chart > .view {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.cti-stack {
  min-height: 0;
  height: 100%;
}
.native-desktop:not(.floating) {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.native-heading {
  flex-shrink: 0;
}
#native-frame-slot {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
}
#native-frame-slot iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.workspace.webex-floating .cti-stack {
  display: contents;
}
.native-desktop.floating {
  max-width: 100vw;
  max-height: 100dvh;
  min-height: min(300px, 100dvh);
}
@media (max-width: 1000px) {
  .workspace.native-mode {
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  }
  .workspace.native-mode.webex-floating {
    grid-template-rows: minmax(0, 1fr);
  }
  .workspace.native-mode.webex-floating .chart {
    grid-row: 1;
  }
  .chart {
    min-height: 0;
  }
  #native-frame-slot iframe {
    height: 100%;
  }
}
.native-desktop.floating {
  min-width: min(280px, 96vw);
}
.history-group {
  font-size: 12px;
  color: #315c88;
  margin: 12px 0 7px;
}
.history-previous {
  border: 1px solid #bdcde0;
  margin: 0 0 6px;
  padding: 0;
  background: #f9fbfe;
}
.history-previous summary {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px;
  font-size: 12px;
  list-style: none;
}
.history-previous summary::before {
  content: '▸';
  color: #4b729a;
}
.history-previous[open] summary::before {
  content: '▾';
}
.history-previous time {
  font-size: 10px;
  color: #5c738e;
  min-width: 76px;
}
.history-previous summary strong {
  flex: 1;
  font-weight: 500;
}
.history-previous p {
  margin: 8px 12px;
  font-size: 12px;
  line-height: 1.6;
  color: #435f7b;
}
.history-previous[open] summary {
  background: #e7eff9;
  border-bottom: 1px solid #c6d6e8;
}
/* Keep the SDK controls usable without letting the panel dominate the chart. */
@media (min-width: 1001px) {
  .workspace.native-mode:not(.webex-floating) {
    grid-template-columns: minmax(0, 1fr) clamp(480px, var(--webex-width, 480px), 640px);
  }
}
.native-desktop.floating {
  min-width: min(480px, 100vw);
  max-width: min(640px, 100vw);
}
/* Home dashboard uses the same banking desktop styling as interactions. */
.landing .rail {
  display: none;
}
.landing .chart-context,
.landing .chart > .tabs,
.landing #overview-view > .section-title {
  display: none;
}
.landing #overview-view {
  padding: 12px;
}
.landing-dashboard h1 {
  font-size: 18px;
  color: #315c88;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #bdcde0;
  font-weight: 600;
}
.dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.dashboard-column {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.dashboard-card {
  background: #fff;
  border: 1px solid #bdcde0;
  border-radius: 2px;
  overflow: hidden;
  min-width: 0;
}
.dashboard-card h2 {
  margin: 0;
  padding: 7px 10px;
  background: #e7eff9;
  border-bottom: 1px solid #c6d6e8;
  color: #315c88;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.dashboard-card h2 > span:first-child {
  margin-right: 6px;
  color: #6484a5;
}
.dashboard-card p,
.dashboard-card-body,
.dashboard-links,
.dashboard-card details {
  padding: 12px;
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #435f7b;
}
.dashboard-card details {
  border-top: 0;
}
.dashboard-card-body p {
  padding: 0;
  margin-top: 12px;
}
.dashboard-card-body small {
  color: #65758a;
  font-size: 11px;
}
.dashboard-date-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 400;
}
.dashboard-date-label input {
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 5px 8px;
  border: 1px solid #bcc9d8;
  border-radius: 2px;
  background: white;
  font-size: 12px;
  color: #263d54;
}
.dashboard-links {
  display: grid;
  gap: 5px;
}
.dashboard-links a,
.dashboard-card summary {
  color: #28679c;
  text-decoration: none;
  font-size: 12px;
}
.dashboard-links a:hover {
  text-decoration: underline;
}
.dashboard-card summary {
  cursor: pointer;
  font-weight: 400;
}
.dashboard-card details p {
  padding: 10px 0 0;
}
@media (max-width: 1400px) {
  .dashboard-columns {
    grid-template-columns: 1fr;
  }
}
.resolving-customer .rail {
  display: none;
}
.resolving-customer .chart-context,
.resolving-customer .chart > .tabs {
  display: none;
}
.match-intro {
  background: #e7eff9;
  border: 1px solid #bdcde0;
  padding: 14px;
  margin-bottom: 16px;
}
.match-intro h2 {
  margin: 0 0 6px;
  font-size: 18px;
  color: #315c88;
}
.match-intro p {
  margin: 0 0 8px;
}
.match-table-scroll {
  overflow: auto;
  border: 1px solid #bdcde0;
  margin-bottom: 16px;
}
.match-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
.match-table th {
  background: #e4ebf4;
  color: #315c88;
  padding: 9px;
  white-space: nowrap;
}
.match-table td {
  padding: 10px 9px;
  border-top: 1px solid #d7e1ed;
  white-space: nowrap;
}
.match-table tr.selected {
  background: #dcebf9;
}
.match-table tbody tr {
  cursor: pointer;
}
.match-table tbody tr:hover {
  background: #edf4fb;
}
.match-table input {
  width: auto;
  margin: 0;
  accent-color: #28679c;
}
.match-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.match-details {
  padding: 12px;
  font-size: 12px;
}
.match-details p {
  margin: 0 0 10px;
}
.match-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}
.match-actions span {
  font-size: 12px;
  color: #65758a;
}
@media (max-width: 1100px) {
  .match-comparison {
    grid-template-columns: 1fr;
  }
  .match-actions {
    flex-wrap: wrap;
  }
}

/* Core-banking-inspired host styling; the Webex iframe retains its own styles. */
:root {
  --blue: #176778;
  --border: #c7d2d9;
  color: #263c49;
  background: #eaf0f3;
}
.topbar {
  background: #10394c;
  border-bottom-color: #092e40;
  height: 44px;
}
.brand .brand-monogram {
  background: #e7c377;
  color: #123849;
  border-color: #e7c377;
}
.commandbar {
  background: #f4f7f9;
}
.rail {
  background: #edf2f5;
}
.section-band,
.card h3,
.railmark {
  background: #e3edf1;
  color: #244c5d;
}
.demo-disclosure {
  font-size: 11px;
  line-height: 1.6;
  color: #586e7b;
  padding: 8px 0;
}
#demo-customer {
  margin: 0 0 18px;
}
.bank-table-scroll {
  overflow-x: auto;
}
.bank-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
.bank-table th {
  background: #f1f5f7;
  font-size: 11px;
  text-transform: uppercase;
  color: #566e7b;
  padding: 11px 12px;
}
.bank-table td {
  padding: 12px;
  border-top: 1px solid #e0e7eb;
}
.bank-table tbody tr:nth-child(even) {
  background: #f8fafb;
}
.bank-table td:last-child,
.bank-table th:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#banking-data > .card {
  margin-top: 14px;
}
.banking-grid {
  margin-top: 14px;
}
.vitals strong {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}
.page-footer {
  font-size: 10px;
}

/* Keep relationship metrics readable beside the fixed-width agent panel. */
.vitals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.vitals > div {
  min-width: 0;
}
