/* [project]/apps/web/src/index.css [app-client] (css) */
:root {
  --navy: #1b2030;
  --navy-light: #2a3042;
  --red: #b91c2c;
  --red-dark: #9b1724;
  --red-soft: #fbe4e7;
  --bg: #f5f6f8;
  --card: #fff;
  --border: #e3e5ea;
  --text: #1b2030;
  --muted: #5d6472;
  --lead: #2563c4;
  --opportunity: #b7791f;
  --tender: #b91c2c;
  --won: #2f7d32;
  --lost: #6b7280;
  --opportunity-text: #875a12;
  --lost-text: #5d6472;
  color: var(--text);
  background: var(--bg);
  font-family: Segoe UI, system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  margin: 0;
}

a {
  color: var(--red);
  text-decoration: none;
}

.muted {
  color: var(--muted);
}

.error-text {
  color: var(--red);
}

button {
  font: inherit;
  cursor: pointer;
}

.btn {
  border: 1px solid var(--border);
  color: var(--text);
  background: #fff;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
}

.btn:hover {
  background: #f0f1f4;
}

.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-outline-light {
  color: #fff;
  background: none;
  border-color: #ffffff80;
}

.btn-outline-light:hover {
  background: #ffffff1a;
}

.btn-small {
  padding: 4px 10px;
  font-size: 13px;
}

.topbar {
  background: var(--navy);
  color: #fff;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding: 10px 24px;
  display: flex;
}

.brand {
  color: #fff;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 700;
}

.brand .dot {
  color: var(--red);
}

.nav {
  flex-wrap: wrap;
  flex: 1;
  justify-content: center;
  gap: 4px;
  display: flex;
}

.nav-link {
  color: #d4d7de;
  white-space: nowrap;
  border-radius: 6px;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
}

.nav-link:hover {
  color: #fff;
}

.nav-link.active {
  background: var(--red);
  color: #fff;
}

.count-badge {
  min-width: 18px;
  color: var(--red);
  text-align: center;
  background: #fff;
  border-radius: 999px;
  padding: 0 5px;
  font-size: 12px;
  line-height: 18px;
}

.topbar-actions {
  align-items: center;
  gap: 12px;
  display: flex;
}

.avatar {
  background: var(--navy-light);
  color: #fff;
  border: none;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
}

.avatar-soft {
  background: var(--red-soft);
  color: var(--red-dark);
}

.user-menu {
  position: relative;
}

.menu {
  z-index: 10;
  min-width: 240px;
  color: var(--text);
  background: #fff;
  border-radius: 10px;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px;
  display: flex;
  position: absolute;
  top: 44px;
  right: 0;
  box-shadow: 0 8px 24px #00000026;
}

.menu-items {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin: 8px 0;
  padding: 6px 0;
  display: flex;
}

.signin-form {
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
  display: flex;
}

.signin-form .btn {
  align-self: flex-start;
}

.handover code {
  color: var(--text);
  letter-spacing: .06em;
  background: #fff;
  border-radius: 6px;
  margin: 6px 0 0 8px;
  padding: 4px 10px;
  font-size: 18px;
  display: inline-block;
}

.menu-link {
  color: var(--text);
  background: none;
  border: none;
  padding: 4px 0;
  font-size: 13px;
  font-weight: 500;
}

.menu-link:hover:not(:disabled) {
  color: var(--red);
}

.menu-link:disabled {
  color: var(--muted);
  cursor: default;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px;
}

.page h1 {
  margin: 0 0 6px;
  font-size: 28px;
}

.subtitle {
  color: var(--muted);
  margin: 0 0 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
}

.page-wide {
  max-width: 1200px;
}

.page-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  display: flex;
}

.small {
  font-size: 13px;
}

.text {
  color: var(--text);
}

.empty {
  text-align: center;
  color: var(--muted);
}

.link-button {
  color: var(--red);
  background: none;
  border: none;
  padding: 0;
  font-weight: 600;
}

select, input[type="search"], input[type="text"], input[type="number"], input[type="date"], textarea {
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  background: #fff;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
}

select:focus, input:focus, textarea:focus {
  border-color: var(--red);
  outline: 2px solid #b91c2c40;
}

.check {
  color: var(--muted);
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  display: inline-flex;
}

.badge {
  white-space: nowrap;
  border: 1px solid;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  display: inline-block;
}

.badge.stage-lead {
  color: var(--lead);
  background: #e8f0fc;
}

.badge.stage-opportunity {
  color: var(--opportunity-text);
  background: #fdf3e1;
}

.badge.stage-tender {
  color: var(--tender);
  background: #fdecee;
}

.badge.stage-won {
  color: var(--won);
  background: #edf7ee;
}

.badge.stage-lost {
  color: var(--lost-text);
  background: #f0f1f3;
}

.badge.funding-approved {
  color: var(--won);
  background: #edf7ee;
}

.badge.funding-needtofind {
  color: var(--red);
  background: #fdecee;
}

.badge.funding-notsure {
  color: var(--opportunity-text);
  background: #fdf3e1;
}

.badge.funding-notapplicable {
  color: var(--lost-text);
  background: #f0f1f3;
}

.badge.value {
  color: var(--won);
  background: #fff;
}

.badge.overdue {
  color: var(--red);
  background: #fdecee;
}

.badge.archived {
  color: var(--muted);
  background: #f0f1f3;
  border-style: dashed;
}

.filter-bar {
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  display: flex;
}

.stage-chips {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

.chip {
  border: 1px solid var(--chip-color);
  color: var(--chip-color);
  background: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
}

.chip.on {
  background: var(--chip-color);
  color: #fff;
}

.chip.stage-lead {
  --chip-color: var(--lead);
}

.chip.stage-opportunity {
  --chip-color: var(--opportunity-text);
}

.chip.stage-tender {
  --chip-color: var(--tender);
}

.chip.stage-won {
  --chip-color: var(--won);
}

.chip.stage-lost {
  --chip-color: var(--lost-text);
}

.filter-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex;
}

.filter-row select {
  min-width: 140px;
  max-width: 230px;
}

.filter-row .search {
  flex: 1;
  min-width: 200px;
}

.spacer {
  flex: 1;
}

.segmented {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
  display: inline-flex;
}

.segmented button {
  color: var(--text);
  background: none;
  border: none;
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
}

.segmented button.on {
  background: var(--navy);
  color: #fff;
}

.project-title {
  color: var(--text);
  font-weight: 700;
}

.project-title:hover {
  color: var(--red);
}

.star {
  color: #b8bcc6;
  background: none;
  border: none;
  padding: 0 2px;
  font-size: 17px;
  line-height: 1;
}

.star.on, .star-mark {
  color: #d4a017;
}

.project-cards {
  flex-direction: column;
  gap: 14px;
  display: flex;
}

.project-card.starred {
  border-left: 4px solid #d4a017;
}

.project-card-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.project-card-head .project-title {
  font-size: 16px;
}

.badges {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  display: flex;
}

.project-notes {
  color: var(--muted);
  margin: 6px 0 12px;
  font-size: 14px;
}

.follow-up-strip {
  border-left: 3px solid var(--border);
  background: #f5f6f8;
  border-radius: 4px;
  margin-bottom: 14px;
  padding: 7px 12px;
  font-size: 13px;
}

.follow-up-strip.overdue {
  border-left-color: var(--red);
  color: var(--red-dark);
  background: #fdecee;
}

.project-facts {
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
  margin: 0;
  font-size: 13px;
  display: grid;
}

.project-facts dt {
  font-weight: 700;
  display: inline;
}

.project-facts dd {
  color: var(--muted);
  margin: 0;
  display: inline;
}

@media (max-width: 640px) {
  .project-facts {
    grid-template-columns: 1fr;
  }
}

.board {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  align-items: start;
  gap: 14px;
  display: grid;
}

.board-column {
  background: #eceef2;
  border-radius: 10px;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  display: flex;
}

.board-column-head {
  align-items: center;
  gap: 8px;
  font-size: 13px;
  display: flex;
}

.board-total {
  margin-left: auto;
  font-weight: 700;
}

.board-card {
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  display: flex;
}

.board-card-title {
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 4px;
  display: flex;
}

.board-card-value {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 6px 0 2px;
  display: flex;
}

.board-card-value strong {
  white-space: nowrap;
}

.board-card > .badge {
  align-self: flex-start;
}

.table-card {
  padding: 0;
  overflow-x: auto;
}

.table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

.table th {
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
  background: #fafbfc;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
}

.table td {
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  padding: 12px 16px;
}

.table tr:last-child td {
  border-bottom: none;
}

.table .num {
  text-align: right;
  white-space: nowrap;
}

.page-form {
  max-width: 820px;
  margin-left: max(24px, 50% - 560px);
}

.form {
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
  display: grid;
}

.form .wide {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .form {
    grid-template-columns: 1fr;
  }
}

.field {
  flex-direction: column;
  gap: 6px;
  display: flex;
}

.field-label {
  font-size: 13px;
  font-weight: 600;
}

.field-hint, .field-error {
  font-size: 12px;
}

.field-hint {
  color: var(--muted);
}

.field-hint a {
  text-decoration: underline;
}

.field-error {
  color: var(--red);
}

.field.has-error input, .field.has-error select {
  border-color: var(--red);
}

.form-actions {
  justify-content: flex-end;
  gap: 10px;
  display: flex;
}

.btn:disabled {
  opacity: .6;
  cursor: default;
}

.pill-list {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

.pill {
  border: 1px solid var(--border);
  background: #f5f6f8;
  border-radius: 999px;
  align-items: center;
  gap: 4px;
  padding: 3px 4px 3px 10px;
  font-size: 13px;
  display: inline-flex;
}

.pill button {
  color: var(--muted);
  background: none;
  border: none;
  padding: 0 6px;
  font-size: 16px;
  line-height: 1;
}

.pill button:hover {
  color: var(--red);
}

.back-link {
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 14px;
  display: inline-block;
}

.back-link:hover {
  color: var(--red);
}

.detail-title {
  font-weight: 600;
  font-size: 24px !important;
}

.detail-actions {
  align-items: center;
  gap: 8px;
  display: flex;
}

.inline-label {
  color: var(--muted);
  align-items: center;
  gap: 8px;
  font-size: 14px;
  display: inline-flex;
}

.btn-danger-outline {
  color: var(--red);
  border-color: #f2b8bf;
}

.detail-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  align-items: start;
  gap: 24px;
  margin-top: 24px;
  display: grid;
}

@media (max-width: 860px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

.detail-main {
  flex-direction: column;
  gap: 24px;
  display: flex;
}

.card-title {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 600;
}

.details {
  margin: 0;
}

.details dt {
  color: var(--muted);
  margin-top: 14px;
  font-size: 12px;
}

.details dt:first-child {
  margin-top: 0;
}

.details dd {
  margin: 2px 0 0;
  font-size: 14px;
}

.details .notes {
  white-space: pre-wrap;
}

.follow-up-card {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  display: flex;
}

.follow-up-card .card-title {
  margin-bottom: 4px;
}

.follow-up-controls {
  gap: 8px;
  display: flex;
}

.activity-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity {
  border-left: 2px solid var(--red-soft);
  padding: 2px 0 2px 16px;
}

.activity + .activity {
  margin-top: 16px;
}

.activity p {
  white-space: pre-wrap;
  margin: 6px 0;
  font-size: 14px;
}

.activity-meta {
  align-items: center;
  gap: 10px;
  font-size: 13px;
  display: flex;
}

.tag {
  background: #eef0f3;
  border-radius: 4px;
  padding: 1px 8px;
  font-size: 12px;
}

.attachments {
  flex-direction: column;
  gap: 10px;
  display: flex;
}

.drop-zone {
  text-align: center;
  cursor: pointer;
  background: #fafbfc;
  border: 2px dashed #cfd3da;
  border-radius: 8px;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 22px 16px;
  display: flex;
}

.drop-zone:hover, .drop-zone:focus-visible, .drop-zone.dragging {
  border-color: var(--red);
  background: #fff7f8;
  outline: none;
}

.file-list {
  border: 1px solid var(--border);
  border-radius: 8px;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.file-list li {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 14px;
  display: flex;
}

.file-list li + li {
  border-top: 1px solid var(--border);
}

.file-list li.removing .file-name {
  color: var(--muted);
  text-decoration: line-through;
}

.file-list li.queued {
  background: #f6fbf6;
}

.file-name {
  overflow-wrap: anywhere;
  font-weight: 600;
}

.file-actions {
  gap: 14px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  display: flex;
}

.small-select {
  padding: 3px 8px;
  font-size: 12px;
}

.attachments-actions {
  align-items: center;
  margin-top: 12px;
}

.attachments-actions .muted {
  margin-right: auto;
}

.activity-files {
  margin: 6px 0 0;
  padding: 0;
  font-size: 13px;
  list-style: none;
}

.activity-files li + li {
  margin-top: 2px;
}

.tag-comment {
  color: var(--lead);
  background: #e8f0fc;
}

.tag-update {
  color: #8a5a12;
  background: #fdf3e1;
}

.tag-note {
  color: var(--won);
  background: #edf7ee;
}

.card-title-row {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.notice {
  border-radius: 8px;
  margin: 16px 0 0;
  padding: 12px 16px;
  font-size: 14px;
}

.notice ul {
  margin: 6px 0;
  padding-left: 20px;
}

.scope-note {
  color: var(--muted);
  background: #eef0f3;
  border-radius: 999px;
  margin: -12px 0 20px;
  padding: 4px 10px;
  font-size: 13px;
  display: inline-block;
}

.notice-info {
  color: #1d3f75;
  background: #eef4fd;
  border: 1px solid #c9d8f2;
  margin: 0;
}

.notice-info p {
  margin: 0;
}

.notice-info p + p {
  margin-top: 6px;
}

.form input:disabled, .form select:disabled {
  color: var(--muted);
  cursor: not-allowed;
  background: #f3f4f6;
}

.pill-lock {
  opacity: .7;
  padding: 0 6px;
  font-size: 11px;
}

.notice-ok {
  color: #1f5f22;
  background: #edf7ee;
  border: 1px solid #b9dcbc;
  margin: 0 0 16px;
}

.red-link {
  color: var(--red-dark);
  font-weight: 600;
}

.red-link:hover {
  text-decoration: underline;
}

.explainer h2 {
  margin: 0 0 6px;
  font-size: 15px;
}

.explainer p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.section-title {
  border-bottom: 2px solid var(--navy);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  font-size: 19px;
}

.section-note {
  margin: -4px 0 12px;
}

.table-dark-head th {
  background: var(--navy);
  color: #fff;
}

.table .rank {
  color: var(--red);
  font-weight: 700;
}

.row-sub {
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  display: flex;
}

.attention-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
  display: grid;
}

.attention-card {
  border-left: 4px solid var(--red);
  flex-direction: column;
  gap: 4px;
  display: flex;
}

.attention-label {
  color: var(--red);
  letter-spacing: .03em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
}

.attention-title {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

.attention-action {
  border-top: 1px dashed var(--border);
  margin-top: 8px;
  padding-top: 10px;
  font-size: 13px;
}

.attention-action strong {
  color: var(--red);
}

.dashboard {
  --chart-bar: #2f6fd6;
  --chart-alert: #d23a3a;
  --grid: #eceef2;
}

.hero-banner {
  color: #fff;
  background: linear-gradient(135deg, #1b2030, #2a3042);
  border-radius: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 26px 32px;
  display: flex;
}

.hero-label {
  color: #c4c8d2;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
}

.hero-figure {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
}

.hero-figure small {
  color: #c4c8d2;
  margin-left: 6px;
  font-size: 14px;
  font-weight: 400;
}

.hero-side {
  color: #c4c8d2;
  flex-direction: column;
  align-items: flex-end;
  font-size: 13px;
  display: flex;
}

.hero-side strong {
  color: #fff;
  font-size: 28px;
}

.filter-toggle-row {
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  display: flex;
}

.btn-pill {
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

.dashboard-filters {
  margin-top: -4px;
  margin-bottom: 16px;
}

.stage-tiles {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
  display: grid;
}

@media (max-width: 900px) {
  .stage-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.stage-tile {
  color: var(--text);
  flex-direction: column;
  gap: 4px;
  transition: border-color .15s;
  display: flex;
}

.stage-tile:hover {
  border-color: #c9ccd3;
}

.tile-label {
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
}

.tile-value {
  font-size: 24px;
  font-weight: 700;
}

.tile-lead .tile-label, .tile-lead .tile-value {
  color: var(--lead);
}

.tile-opportunity .tile-label, .tile-opportunity .tile-value {
  color: var(--opportunity-text);
}

.tile-tender .tile-label, .tile-tender .tile-value {
  color: var(--tender);
}

.tile-won .tile-label, .tile-won .tile-value {
  color: var(--won);
}

.tile-overdue .tile-label, .tile-overdue .tile-value {
  color: var(--red);
}

.chart-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
  display: grid;
}

@media (max-width: 1000px) {
  .chart-grid {
    grid-template-columns: 1fr;
  }
}

.chart-card {
  position: relative;
}

.chart-head {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.chart-title {
  color: var(--red-dark);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.chart-subtitle {
  color: var(--muted);
  margin: 2px 0 14px;
  font-size: 12px;
}

.chart-caption {
  margin: -6px 0 12px;
  font-size: 13px;
}

.bar-list {
  flex-direction: column;
  gap: 8px;
  display: flex;
  position: relative;
}

.bar-row {
  border-radius: 4px;
  outline: none;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 10px;
  padding: 2px 0;
  font-size: 12px;
  display: grid;
}

.bar-row:hover .bar, .bar-row:focus-visible .bar {
  filter: brightness(1.15);
}

.bar-row:focus-visible {
  box-shadow: 0 0 0 2px #2f6fd659;
}

.bar-label {
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.bar-track {
  align-items: center;
  gap: 6px;
  min-width: 0;
  display: flex;
}

.bar {
  background: var(--chart-bar);
  border-radius: 0 4px 4px 0;
  flex-shrink: 0;
  min-width: 3px;
  max-width: calc(100% - 96px);
  height: 14px;
  display: block;
}

.bar-value {
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
}

.column-chart {
  padding-left: 24px;
  position: relative;
}

.column-plot {
  border-bottom: 1px solid #d5d8de;
  position: relative;
}

.gridline {
  border-top: 1px solid var(--grid);
  position: absolute;
  left: 0;
  right: 0;
}

.gridline span {
  color: var(--muted);
  font-size: 10px;
  position: absolute;
  top: -8px;
  left: -22px;
}

.columns {
  display: flex;
  position: absolute;
  inset: 0;
}

.column-slot {
  outline: none;
  flex-direction: column;
  flex: 1;
  justify-content: flex-end;
  align-items: center;
  display: flex;
  position: relative;
}

.column-slot:hover .column, .column-slot:focus-visible .column {
  filter: brightness(1.15);
}

.column {
  background: var(--chart-bar);
  border-radius: 4px 4px 0 0;
  display: block;
}

.column.highlight {
  background: var(--chart-alert);
}

.column-value {
  color: var(--text);
  margin-bottom: 3px;
  font-size: 11px;
}

.column-labels {
  margin-top: 6px;
  display: flex;
}

.column-labels span {
  color: var(--muted);
  text-align: center;
  flex: 1;
  font-size: 10px;
  line-height: 1.3;
}

.chart-tooltip {
  z-index: 5;
  background: var(--navy);
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
  border-radius: 6px;
  flex-direction: column;
  padding: 6px 10px;
  font-size: 12px;
  display: flex;
  position: absolute;
  transform: translate(-50%, calc(-100% - 10px));
}

.chart-tooltip span {
  color: #c4c8d2;
}

.wide-chart {
  margin-bottom: 20px;
}

.treemap {
  position: relative;
}

.tm-header {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #eef0f3;
  padding: 2px 4px;
  font-size: 10px;
  line-height: 14px;
  position: absolute;
  overflow: hidden;
}

.tm-block {
  border-radius: 2px;
  outline: none;
  flex-direction: column;
  gap: 2px;
  padding: 5px 6px;
  font-size: 11px;
  line-height: 1.25;
  display: flex;
  position: absolute;
  overflow: hidden;
}

.tm-block.stage-lead {
  background: var(--lead);
  color: #fff;
}

.tm-block.stage-tender {
  background: var(--tender);
  color: #fff;
}

.tm-block.stage-opportunity {
  background: var(--opportunity);
  color: #0d1018;
}

.tm-block:hover, .tm-block:focus-visible {
  filter: brightness(1.12);
  box-shadow: inset 0 0 0 2px #fffc;
}

.tm-title {
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-weight: 600;
  display: -webkit-box;
  overflow: hidden;
}

.tm-value {
  opacity: .9;
}

.chart-legend {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin-top: 10px;
  font-size: 12px;
  display: flex;
}

.chart-legend span {
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.swatch {
  border-radius: 2px;
  width: 10px;
  height: 10px;
  display: inline-block;
}

.swatch.stage-lead {
  background: var(--lead);
}

.swatch.stage-opportunity {
  background: var(--opportunity);
}

.swatch.stage-tender {
  background: var(--tender);
}

.swatch.person-swatch {
  background: var(--navy);
  border-radius: 50%;
}

.network {
  position: relative;
}

.network svg {
  display: block;
}

.network-links line {
  stroke: #c3c7cf;
  stroke-width: 1px;
  transition: opacity .15s;
}

.network-links line.dim {
  opacity: .12;
}

.network-node {
  cursor: pointer;
  outline: none;
  transition: opacity .15s;
}

.network-node.dim {
  opacity: .18;
}

.network-node .person {
  fill: var(--navy);
  stroke: #fff;
  stroke-width: 2px;
}

.network-node .project {
  stroke: #fff;
  stroke-width: 2px;
}

.network-node .project.stage-lead {
  fill: var(--lead);
}

.network-node .project.stage-opportunity {
  fill: var(--opportunity);
}

.network-node .project.stage-tender {
  fill: var(--tender);
}

.network-node:focus-visible .person, .network-node:focus-visible .project {
  stroke: var(--red);
  stroke-width: 3px;
}

.network-labels text {
  fill: var(--text);
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 3px;
  pointer-events: none;
  font-size: 11px;
  transition: opacity .15s;
}

.network-labels text.dim {
  opacity: .18;
}

.two-col {
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
  display: grid;
}

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.two-col .chart-title {
  margin-bottom: 12px;
}

.table.compact th, .table.compact td {
  padding: 8px 10px;
  font-size: 13px;
}

.plain-link {
  color: var(--text);
}

.plain-link:hover {
  color: var(--red);
}

.recent-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.recent-list li {
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.recent-list li:last-child {
  border-bottom: none;
}

.recent-list p {
  margin: 2px 0 0;
}

.recent-title {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  display: block;
}

.due-panel {
  border-left: 4px solid var(--red);
  background: #fdf3f4;
}

.due-list {
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

@media (max-width: 760px) {
  .due-list {
    grid-template-columns: 1fr;
  }
}

.due-list li {
  background: #fff;
  border-radius: 6px;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  font-size: 13px;
  display: flex;
}

.due-date {
  color: var(--muted);
  flex-shrink: 0;
}

.due-date.overdue {
  color: var(--red);
}

.add-panel {
  margin-bottom: 20px;
}

.list-tools {
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  display: flex;
}

.list-tools .search {
  flex: 1;
}

.archived-row td {
  color: var(--muted);
}

.linked-list, .interaction-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.linked-list li {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  display: flex;
}

.linked-list li:last-child {
  border-bottom: none;
}

.interaction-list li {
  padding: 8px 0;
  font-size: 14px;
}

.row-actions {
  text-align: right;
  white-space: nowrap;
}

.row-actions > * + * {
  margin-left: 6px;
}

.editing-row td {
  background: #fafbfc;
}

.row-form {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.row-form input[type="text"] {
  flex: 1;
  min-width: 240px;
}

.file-cell {
  align-items: center;
  gap: 10px;
  display: flex;
}

.file-type {
  min-width: 36px;
  height: 36px;
  color: var(--muted);
  background: #eef0f3;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
}

.upload-project {
  max-width: 420px;
  margin-bottom: 12px;
}

.report {
  max-width: 980px;
}

.report-kicker {
  color: var(--red-dark);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

.report-meta {
  line-height: 1.6;
}

.btn-dark {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.btn-dark:hover {
  background: var(--navy-light);
}

.headlines {
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 22px 26px;
}

.headlines h2 {
  color: #c4c8d2;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 10px;
  font-size: 12px;
}

.headlines ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.8;
}

.headlines li::marker {
  color: #ff6b7a;
}

.report-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
  display: grid;
}

@media (max-width: 760px) {
  .report-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.kpi {
  flex-direction: column;
  gap: 4px;
  display: flex;
}

.kpi .tile-label {
  color: var(--muted);
}

.kpi-good .tile-value {
  color: var(--won);
}

.kpi-bad .tile-value {
  color: var(--red);
}

.report-grid {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
  display: grid;
}

@media (max-width: 760px) {
  .report-grid {
    grid-template-columns: 1fr;
  }
}

.report-card .chart-title {
  margin-bottom: 12px;
}

.report-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.report-list li {
  grid-template-columns: 20px 1fr auto;
  gap: 8px;
  padding: 8px 0;
  font-size: 14px;
  display: grid;
}

.report-list-end {
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  display: flex;
}

.report-sub {
  color: var(--muted);
  margin: 12px 0 6px;
  font-size: 12px;
  font-weight: 600;
}

.report-sub:first-of-type {
  margin-top: 0;
}

.report-line {
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  font-size: 14px;
  display: flex;
}

.alert-text {
  color: var(--red);
  flex-shrink: 0;
  font-size: 12px;
}

.share-row {
  margin-bottom: 12px;
}

.share-text {
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  display: flex;
}

.share-track {
  background: #eef0f3;
  border-radius: 3px;
  height: 5px;
  margin-top: 3px;
}

.share-bar {
  background: var(--chart-bar, #2f6fd6);
  border-radius: 3px;
  height: 100%;
  display: block;
}

.share-bar.funding-approved {
  background: var(--won);
}

.share-bar.funding-needtofind {
  background: var(--red);
}

.share-bar.funding-notsure {
  background: var(--opportunity);
}

.share-bar.funding-notapplicable {
  background: var(--lost);
}

.report-stat {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  display: flex;
}

.report-stat:last-child {
  border-bottom: none;
}

.watchlist {
  grid-template-columns: 1fr 1fr;
  gap: 4px 32px;
  display: grid;
}

@media (max-width: 760px) {
  .watchlist {
    grid-template-columns: 1fr;
  }
}

.report-footnote {
  margin-top: 16px;
}

@media print {
  .topbar, .no-print, .link-button {
    display: none !important;
  }

  body, :root {
    background: #fff;
  }

  .page {
    max-width: none;
    padding: 0;
  }

  .card, .headlines {
    break-inside: avoid;
  }

  .headlines {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  a {
    color: inherit;
  }
}

.reschedule {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 220px;
  display: flex;
}

.reschedule-quick {
  gap: 6px;
  display: flex;
}

.reschedule input[type="date"] {
  width: 100%;
  padding: 4px 10px;
}

.notice-error {
  color: var(--red-dark);
  background: #fdecee;
  border: 1px solid #f2b8bf;
}

.signin {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 24px 16px;
  display: flex;
}

.signin-brand {
  text-align: center;
  margin-bottom: 24px;
}

.signin-logo {
  color: var(--red-dark);
  font-size: 30px;
  font-weight: 800;
}

.signin-card {
  width: 100%;
  max-width: 448px;
}

.signin-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.signin-card p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
}

.user-list {
  flex-direction: column;
  gap: 8px;
  display: flex;
}

.user-card {
  border: 1px solid var(--border);
  color: var(--text);
  text-align: left;
  background: #fff;
  border-radius: 8px;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  display: flex;
}

.user-card:hover {
  border-color: var(--red);
  background: snow;
}

.user-card strong, .user-card small {
  display: block;
}

.user-card small {
  font-size: 12px;
}

.nav-toggle {
  display: none;
}

.phone-only {
  display: none !important;
}

@media (max-width: 760px) {
  .phone-only {
    display: inline-flex !important;
  }

  .dashboard-charts:not(.open) {
    display: none;
  }

  .charts-toggle {
    margin-bottom: 16px;
  }

  .details-panel:not(.expanded) .detail-extra {
    display: none;
  }

  .more-details {
    margin-top: 12px;
  }
}

.touch-only {
  display: none;
}

@media (hover: none) and (pointer: coarse) {
  .touch-only {
    display: inline;
  }

  .pointer-only {
    display: none;
  }
}

@media (max-width: 1100px) {
  .topbar {
    z-index: 20;
    gap: 10px;
    padding: 8px 12px;
    position: sticky;
    top: 0;
  }

  .nav-toggle {
    color: #fff;
    background: none;
    border: 1px solid #ffffff59;
    border-radius: 8px;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
  }

  .brand {
    flex: 1;
    font-size: 16px;
  }

  .brand-sub {
    display: none;
  }

  .topbar-actions {
    gap: 8px;
  }

  .topbar-actions .btn {
    min-height: 40px;
    padding: 8px 12px;
  }

  .avatar {
    width: 40px;
    height: 40px;
  }

  .nav {
    border-top: 1px solid #ffffff1f;
    flex-direction: column;
    flex-basis: 100%;
    order: 10;
    gap: 2px;
    padding: 6px 0 4px;
    display: none;
  }

  .topbar.menu-open .nav {
    display: flex;
  }

  .nav-link {
    justify-content: space-between;
    padding: 12px 14px;
    font-size: 16px;
  }

  .user-menu {
    position: static;
  }

  .menu {
    min-width: 0;
    top: 60px;
    left: 12px;
    right: 12px;
  }

  .menu-link {
    padding: 10px 0;
    font-size: 15px;
  }
}

@media (max-width: 760px) {
  .hide-on-phone {
    display: none;
  }

  .page {
    padding: 20px 14px 40px;
  }

  .page h1 {
    font-size: 24px;
  }

  .page-form {
    margin-left: auto;
  }

  .card {
    padding: 16px;
  }

  .detail-grid, .chart-grid, .two-col, .report-grid, .form, .watchlist, .due-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-title {
    font-size: 21px !important;
  }

  .detail-actions, .follow-up-controls {
    flex-wrap: wrap;
  }

  .follow-up-controls input[type="date"] {
    flex: 1;
  }

  .attention-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .table-card, .report-card, .chart-card {
    overflow-x: auto;
  }

  .btn, select, input[type="search"], input[type="text"], input[type="number"], input[type="date"], input[type="email"], input[type="password"], textarea {
    min-height: 40px;
    font-size: 16px;
  }

  .btn-small {
    min-height: 36px;
    font-size: 14px;
  }

  .chip, .segmented button {
    padding: 8px 14px;
    font-size: 14px;
  }

  .star {
    padding: 6px;
    font-size: 20px;
  }

  .check {
    min-height: 36px;
    font-size: 15px;
  }

  .link-button {
    padding: 6px 0;
  }

  .filter-row select {
    flex: calc(50% - 5px);
    min-width: 0;
    max-width: none;
  }

  .filter-row .search {
    flex-basis: 100%;
    min-width: 0;
  }

  .list-tools {
    flex-wrap: wrap;
    gap: 10px;
  }

  .list-tools .search {
    flex-basis: 100%;
  }

  .row-form input[type="text"] {
    flex: 100%;
    min-width: 0;
  }

  .row-form select {
    flex: 1;
  }

  .table.stacked .editing-row td {
    padding: 4px 0;
  }

  .chart-head .link-button {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .stage-tiles > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .upload-project {
    max-width: none;
  }

  .hero-banner {
    gap: 14px;
    padding: 20px;
  }

  .hero-figure {
    font-size: 30px;
  }

  .hero-figure small {
    margin: 6px 0 0;
    display: block;
  }

  .hero-side {
    align-items: flex-start;
  }

  .stage-tiles {
    gap: 10px;
  }

  .tile-value {
    font-size: 21px;
  }

  .bar-row {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .headlines {
    padding: 18px;
  }

  .report-list li {
    grid-template-columns: 20px minmax(0, 1fr) auto;
  }

  .reschedule {
    min-width: 0;
  }

  .reschedule-quick {
    flex-wrap: wrap;
  }
}

.table.stacked, .table.stacked tbody, .table.stacked tr, .table.stacked td {
  width: 100%;
  display: block;
}

.table.stacked thead {
  display: none;
}

.table.stacked tr {
  border-bottom: 1px solid var(--border);
  padding: 12px 14px;
}

.table.stacked tr:last-child {
  border-bottom: none;
}

.table.stacked td {
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  border: none;
  grid-template-columns: min(38%, 200px) minmax(0, 1fr);
  place-items: start;
  column-gap: 10px;
  padding: 6px 0;
  display: grid;
}

.table.stacked td:before {
  content: attr(data-label);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .03em;
  grid-area: 1 / 1 / span 20;
  padding-top: 2px;
  font-size: 12px;
  font-weight: 600;
}

.table.stacked td > * {
  grid-column: 2;
}

.table.stacked td:not([data-label]), .table.stacked td:first-child {
  display: block;
}

.table.stacked td:not([data-label]):before, .table.stacked td:first-child:before {
  content: none;
}

.table.stacked td:first-child {
  padding-bottom: 8px;
  font-size: 15px;
}

.table.stacked .num, .table.stacked .row-actions {
  text-align: left;
}

.table.stacked td.row-actions {
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  display: flex;
}

.table.stacked .row-actions > * + * {
  margin-left: 0;
}

.table.stacked .editing-row td {
  padding: 4px 0;
}

/*# sourceMappingURL=apps_web_src_index_0jwupq1rs48vp.css.map*/