:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #172b42;
  background: #f4f7fa;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #d6dfe8;
  background: white;
  color: #233b52;
  border-radius: 7px;
  padding: 10px 13px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
button:hover {
  background: #edf3f7;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #20a5be;
  outline-offset: 2px;
}
.primary {
  background: #087f8b;
  color: white;
  border-color: #087f8b;
}
.primary:hover {
  background: #066c77;
}
header {
  height: 80px;
  background: #102b43;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0c8c98;
  width: 40px;
  height: 40px;
  border-radius: 9px;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  margin-top: 5px;
  color: #91afc2;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 25px;
}
.private {
  font-size: 13px;
  color: #b2c6d4;
}
.year {
  background: #244157;
  border: 1px solid #3b5369;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
}
main {
  padding: 30px 36px 24px;
  max-width: 1920px;
  margin: auto;
}
.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #5b778b;
  margin: 0 0 10px;
}
h1 {
  font-size: 29px;
  letter-spacing: -1px;
  margin: 0;
  font-weight: 700;
}
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr 1.3fr;
  gap: 16px;
  margin-bottom: 26px;
}
.metrics section {
  background: white;
  border: 1px solid #dce4eb;
  border-radius: 10px;
  padding: 20px 22px;
  min-width: 0;
}
.metrics label {
  display: block;
  color: #597084;
  font-size: 14px;
  margin-bottom: 13px;
}
.metrics strong {
  display: block;
  font-size: 29px;
  letter-spacing: -0.8px;
}
.metrics section > span {
  display: block;
  font-size: 12px;
  color: #718295;
  margin-top: 9px;
}
.metrics .margin-card {
  background: #e6f5f5;
  border-color: #bce2e1;
}
.margin-card strong {
  color: #087a7c;
}
.bars {
  height: 77px;
  display: flex;
  align-items: end;
  gap: 7px;
}
.bars > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.bars > div > div {
  width: 100%;
  max-width: 24px;
  background: #30a4ad;
  border-radius: 3px 3px 0 0;
}
.bars span {
  font-size: 10px;
  color: #637c8f;
}
.workspace {
  background: white;
  border: 1px solid #dbe3ea;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px #172d4210;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 22px 22px;
}
h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 0;
}
.toolbar span {
  display: block;
  color: #6f8294;
  font-size: 13px;
  margin-top: 5px;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d6dfe8;
  padding: 0 10px;
  border-radius: 6px;
  color: #73869a;
}
.search input {
  width: 150px;
  border: none;
  padding: 10px 0;
  font-size: 14px;
  background: transparent;
  outline: none;
}
.table-scroll {
  overflow: auto;
  max-height: calc(100vh - 440px);
  min-height: 310px;
}
table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1780px;
  width: 100%;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
th,
td {
  padding: 0;
  border-bottom: 1px solid #e7edf1;
  border-right: 1px solid #edf1f4;
  text-align: right;
}
thead th {
  background: #f1f5f8;
  font-size: 13px;
  font-weight: 700;
  padding: 15px 12px;
  position: sticky;
  top: 0;
  z-index: 3;
  color: #536b80;
}
thead small {
  font-size: 10px;
  margin-left: 2px;
  color: #8c9ba9;
}
.customer-col {
  position: sticky;
  left: 0;
  z-index: 2;
  background: white;
  width: 230px;
  min-width: 230px;
  padding: 14px 18px;
  text-align: left;
  box-shadow: 3px 0 5px #22334405;
}
.customer-col small {
  display: block;
  color: #8a9baa;
  font-weight: 400;
  font-size: 11px;
  margin-top: 6px;
}
thead .customer-col {
  z-index: 4;
  background: #f1f5f8;
}
td {
  height: 68px;
  min-width: 115px;
}
.cell {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 7px;
  padding: 12px 10px;
  background: transparent;
  font-size: 14px;
  font-weight: 400;
}
.cell:hover,
.cell.active {
  background: #eaf6f6;
  box-shadow: inset 0 0 0 2px #71bfc1;
}
.cell strong,
td > strong {
  font-weight: 600;
  font-size: 14px;
}
.pill {
  display: block;
  font-size: 12px;
  padding: 3px 5px;
  border-radius: 4px;
  width: fit-content;
  color: #8b9ba8;
  font-weight: 500;
  line-height: 1.1;
}
.good {
  color: #147654;
  background: #e5f4eb;
}
.mid {
  color: #a47006;
  background: #fff4d5;
}
.low {
  color: #b14348;
  background: #fcebed;
}
.total-col {
  background: #f4f8fb;
  padding: 12px 14px;
  min-width: 140px;
}
.total-col .pill,
tfoot .pill {
  margin: 7px 0 0 auto;
}
tfoot th,
tfoot td {
  background: #edf4f8;
  padding: 16px 12px;
  border-top: 2px solid #c6d6e1;
}
tfoot .customer-col {
  background: #edf4f8;
  padding-left: 18px;
}
.table-foot {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 20px;
  font-size: 12px;
  color: #768897;
  border-top: 1px solid #e1e8ef;
}
.legend {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 4px 0 15px;
  border-radius: 2px;
}
.legend.good {
  background: #55a780;
}
.legend.mid {
  background: #e2b555;
}
.legend.low {
  background: #d57b7d;
}
.source {
  font-size: 12px;
  color: #76899a;
  line-height: 1.6;
  max-width: 1050px;
  margin: 17px 0;
}
.overlay {
  position: fixed;
  inset: 0;
  background: #0c263f60;
  z-index: 20;
  display: flex;
  justify-content: end;
  backdrop-filter: blur(2px);
}
.drawer {
  background: white;
  width: 490px;
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 50px #0e243523;
  padding: 25px 26px 0;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.drawer-head button {
  padding: 6px;
  border: none;
  background: transparent;
}
.drawer-head .eyebrow {
  margin: 0;
}
.drawer > h2 {
  font-size: 26px;
}
.month-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 19px 0;
}
.month-nav button {
  padding: 7px;
}
.drawer-body {
  overflow: auto;
  padding: 0 2px 24px;
  flex: 1;
}
.draft-summary {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  background: #edf7f7;
  border-radius: 8px;
  padding: 15px 12px;
  gap: 10px;
  margin-bottom: 24px;
}
.draft-summary label {
  display: block;
  font-size: 12px;
  color: #6b8593;
  margin-bottom: 7px;
}
.draft-summary strong {
  font-size: 17px;
  color: #087780;
}
h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}
.hint {
  font-size: 14px;
  color: #708496;
  line-height: 1.5;
  margin: 8px 0 17px;
}
.entry {
  border: 1px solid #dce5ec;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
}
.entry-top {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.entry-top select {
  flex: 1;
  min-width: 0;
  background: #f3f6f9;
  font-weight: 600;
  padding: 10px;
  border: 0;
  border-radius: 5px;
  font-size: 14px;
}
.icon-button {
  border: 0;
  color: #8191a0;
  padding: 8px;
}
.entry-fields {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 15px;
}
label {
  font-size: 14px;
  color: #4f6c81;
}
input {
  border: 1px solid #d1dde6;
  border-radius: 5px;
  padding: 10px;
  width: 100%;
  color: #17384c;
  background: white;
}
label > input {
  display: block;
  margin-top: 7px;
}
.entry-result {
  display: flex;
  justify-content: space-between;
  color: #6c8595;
  font-size: 12px;
  margin: 13px 0 0;
}
.entry-result strong {
  color: #137a7f;
  font-size: 14px;
}
.add-entry {
  width: 100%;
  border-style: dashed;
  color: #087c86;
  margin-bottom: 20px;
}
.drawer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #dce5eb;
  padding: 18px 0;
}
.drawer-bottom span {
  font-size: 12px;
  color: #7a8c9a;
}
.default-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.default-row input {
  width: 95px;
  margin: 0 0 0 auto;
}
details {
  border-top: 1px solid #e2e8ee;
  padding-top: 16px;
}
summary {
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.modal-overlay {
  align-items: center;
  justify-content: center;
}
.modal {
  background: white;
  border-radius: 13px;
  padding: 25px;
  width: 460px;
  max-width: calc(100% - 28px);
  max-height: 90vh;
  overflow: auto;
}
.modal form > button {
  width: 100%;
  margin-top: 20px;
}
.channel-list {
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.channel-list > div {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #ecf5f6;
  color: #147b82;
  border-radius: 5px;
  padding: 9px 12px;
  font-size: 14px;
}
.error {
  background: #fff0ef;
  color: #9d3b3d;
  border: 1px solid #f4cfcd;
  padding: 13px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}
.empty {
  padding: 20px;
  color: #8596a3;
  font-size: 14px;
  text-align: center;
}
.loading {
  text-align: center;
  padding-top: 20vh;
}
.loading svg {
  margin: auto auto 20px;
  color: #168893;
}
.loading p {
  margin: 20px;
}
@media (min-width: 1700px) {
  table {
    min-width: 100%;
  }
}
@media (max-width: 1100px) {
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .title-row {
    align-items: start;
  }
  .title-row .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .table-scroll {
    max-height: 60vh;
  }
  .metrics strong {
    font-size: 26px;
  }
}
@media (max-width: 650px) {
  header {
    padding: 0 18px;
    height: 70px;
  }
  .brand {
    font-size: 18px;
  }
  .private {
    display: none;
  }
  .header-right {
    gap: 5px;
  }
  main {
    padding: 22px 15px;
  }
  .title-row {
    display: block;
  }
  h1 {
    font-size: 25px;
  }
  .title-row .actions {
    flex-direction: row;
    margin-top: 17px;
    flex-wrap: wrap;
  }
  .metrics {
    gap: 10px;
  }
  .metrics section {
    padding: 16px 13px;
  }
  .metrics strong {
    font-size: 21px;
  }
  .metrics .trend {
    grid-column: 1/-1;
  }
  .metrics .margin-card {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .margin-card label {
    margin: 0;
  }
  .margin-card > span {
    display: none !important;
  }
  .toolbar {
    padding: 16px;
  }
  .toolbar .actions {
    flex-wrap: wrap;
  }
  .search {
    width: 100%;
  }
  .search input {
    width: 100%;
  }
  .customer-col {
    min-width: 160px;
    width: 160px;
    padding: 12px;
    font-size: 13px;
  }
  .table-foot {
    flex-wrap: wrap;
    font-size: 12px;
  }
  .drawer {
    padding: 20px 18px 0;
  }
  .draft-summary strong {
    font-size: 15px;
  }
  .source {
    font-size: 12px;
  }
}
.channel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.channel-heading h3 {
  margin: 0;
}
.channel-heading button {
  font-size: 12px;
  padding: 7px 9px;
}
.live-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  color: #24485c;
  font-size: 15px;
}
.live-toggle input,
.assignment input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #087f8b;
  cursor: pointer;
}
.live-label,
.off-label {
  font-size: 12px;
  padding: 4px 7px;
  border-radius: 4px;
}
.live-label {
  background: #e1f3ea;
  color: #17734d;
}
.off-label {
  background: #edf1f5;
  color: #7b8c9c;
}
.inactive {
  background: #f9fbfc;
}
.inactive .entry-fields {
  opacity: 0.6;
}
.assignment {
  margin-bottom: 20px;
}
.assignment label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border-bottom: 1px solid #edf1f4;
}
.assignment small {
  margin-left: auto;
  font-size: 11px;
  color: #8194a4;
}
.modal > .primary {
  width: 100%;
}

.import-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid #d6dfe8;
  border-radius: 7px;
  padding: 10px 13px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  color: #233b52;
}
.import-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.import-button:focus-within {
  outline: 3px solid #20a5be;
}
.offline-note {
  background: #e8f3f8;
  border-left: 3px solid #3995ae;
  padding: 12px 16px;
  line-height: 1.6;
  font-size: 14px;
  color: #42647a;
}
.title-row {
  flex-wrap: wrap;
}
.actions {
  flex-wrap: wrap;
}
.metrics h1 {
  margin: 0;
}
.app input[type='checkbox'] {
  padding: 0;
}
h1,
h2,
h3 {
  line-height: 1.25;
}
.loading svg {
  display: block;
}
button svg {
  flex-shrink: 0;
}
.drawer-body {
  min-height: 0;
}
.private {
  white-space: nowrap;
}
@media (max-width: 650px) {
  .title-row .actions {
    gap: 8px;
  }
  .title-row .actions button,
  .import-button {
    font-size: 12px;
    padding: 9px;
  }
  .drawer-bottom {
    flex-wrap: wrap;
  }
}
.summary-metrics {
  grid-template-columns: 1fr 1fr 1.1fr 1.2fr;
}
.summary-metrics strong {
  font-size: 25px;
}
.summary-metrics section > span {
  font-size: 13px;
  line-height: 1.5;
}
.summary-metrics section > small {
  display: block;
  font-size: 12px;
  color: #8a769f;
  margin-top: 7px;
}
.metrics .newbiz-card {
  background: #f3effa;
  border-color: #dcd2ee;
}
.newbiz-card label,
.newbiz-card strong {
  color: #74539c;
}
.newbiz-workspace {
  margin-top: 25px;
}
.newbiz-workspace .toolbar {
  background: #faf8fd;
}
.newbiz-button {
  background: #7754a0;
  color: white;
  border-color: #7754a0;
}
.newbiz-button:hover {
  background: #624489;
}
.weighting-hint {
  margin: 0;
  background: #faf8fd;
  padding: 0 22px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: #7a698e;
}
.probability-chip {
  display: flex;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 7px;
  margin-top: 8px;
  background: #f0eaf8;
  color: #735497;
  border-color: #ded3ef;
  border-radius: 5px;
  white-space: normal;
  text-align: left;
  justify-content: start;
}
.probability-chip:hover {
  background: #e5d9f4;
}
.weighted-value {
  display: block;
  margin-top: 7px;
  color: #76559b;
  font-size: 12px;
}
.group-empty {
  padding: 20px 22px;
  text-align: center;
  background: #fbfcfd;
  color: #7890a3;
  font-size: 14px;
}
.group-empty p {
  margin: 0 0 12px;
}
.newbiz-workspace tfoot tr:first-child td,
.newbiz-workspace tfoot tr:first-child th {
  background: #f2edf9;
  border-top-color: #d8c7ea;
}
.newbiz-workspace tfoot .combined-total td,
.newbiz-workspace tfoot .combined-total th {
  background: #dff0f1;
  border-top: 2px solid #99ced0;
  color: #11676f;
}
.combined-total strong {
  font-size: 15px;
}
.drawer-probability {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
  font-size: 13px;
  color: #79599d;
}
.drawer-probability button {
  padding: 6px 9px;
  font-size: 12px;
  border-color: #d8c7ea;
  color: #79599d;
}
.weighted-preview {
  background: #f3eff9;
  border-left: 3px solid #9d80bc;
  border-radius: 4px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: #74549c;
  margin: 0 0 22px;
}
.chance-field {
  display: block;
  margin-top: 18px;
}
.chance-field span {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: #7b8f9e;
  margin-top: 9px;
}
.table-scroll {
  min-height: 0;
  max-height: 55vh;
}
tfoot th.customer-col {
  line-height: 1.4;
}
.customer-col > span {
  display: block;
}
.newbiz-workspace .table-scroll:has(tbody:empty) {
  min-height: 0;
}
@media (max-width: 1100px) {
  .summary-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .summary-metrics strong {
    font-size: 24px;
  }
}
@media (max-width: 650px) {
  .summary-metrics {
    grid-template-columns: 1fr;
  }
  .summary-metrics .margin-card {
    display: block;
  }
  .summary-metrics .margin-card > span {
    display: block !important;
  }
  .summary-metrics .margin-card label {
    margin-bottom: 13px;
  }
  .summary-metrics .trend {
    grid-column: auto;
  }
  .weighting-hint {
    padding: 0 16px 15px;
  }
  .drawer-probability {
    flex-wrap: wrap;
  }
  .combined-total strong {
    font-size: 14px;
  }
  .probability-chip {
    font-size: 12px;
  }
}
.account-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 36px;
  background: #e8f1f6;
  color: #526d80;
  font-size: 13px;
}
.account-bar button {
  padding: 6px 9px;
  font-size: 12px;
}
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef4f8;
}
.login-box {
  width: 460px;
  max-width: 100%;
  padding: 36px;
  background: white;
  border: 1px solid #d4e0e9;
  box-shadow: 0 15px 60px #15374b12;
  border-radius: 14px;
}
.login-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: #e3f4f4;
  color: #087f8b;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.login-box h1 {
  font-size: 27px;
}
.login-box form label {
  display: block;
  margin: 18px 0;
}
.login-box form > .primary {
  width: 100%;
  margin-top: 8px;
}
.login-box small {
  font-size: 12px;
  color: #7a8e9f;
  display: block;
  margin-top: 7px;
}
.login-extra {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}
.login-extra button {
  font-size: 12px;
}
.login-message {
  background: #eef7fa;
  font-size: 14px;
  line-height: 1.6;
  padding: 12px;
  color: #486b7f;
  border-radius: 6px;
}
.login-box .error {
  margin-top: 15px;
}
@media (max-width: 650px) {
  .account-bar {
    padding: 9px 15px;
    flex-wrap: wrap;
  }
  .account-bar strong {
    overflow-wrap: anywhere;
  }
  .login-box {
    padding: 25px;
  }
  .login-page {
    padding: 18px;
  }
  .login-extra {
    flex-wrap: wrap;
  }
}
