/* Forecast bucket colours, one set for every page (24 Oct MA-17): the Weekly Forecast's banners. Not theme tokens, so a bucket
   keeps its colour whatever theme is picked. Same values as DealUi.BucketColor. */
:root{
  --bk-commits:#1B4E7A;  --bk-commits-bg:#E8F1F8;  --bk-commits-border:#C7DAEB;
  --bk-probable:#8A5A18; --bk-probable-bg:#FBF1DE; --bk-probable-border:#EAD6A8;
  --bk-longshot:#A34E2A; --bk-longshot-bg:#FBEBE2; --bk-longshot-border:#EFC9AF;
  --bk-suspects:#4B4E6D; --bk-suspects-bg:#EDEDF4; --bk-suspects-border:#D6D6E5;
}
/* sidebar brand = the website's logo (24 Oct MW-16): the round 4C mark, and the 4Cast360 wordmark on a white chip */
.sidebar-brand__mark--img{background:none !important;padding:0;}
.sidebar-brand__mark--img img{width:40px;height:40px;display:block;}
.sidebar-brand__logo{display:inline-flex !important;align-items:center;padding:4px 10px;border-radius:10px;background:#fff;margin-bottom:3px;}
.sidebar-brand__logo img{display:block;width:96px;height:auto;}
.c360-modal .c360-modal__msg{margin:0;white-space:pre-line;line-height:1.55;}
/* 4Cast360 — additions on top of the prototype's site.css (same tokens and look). */

.app-toasts { position: fixed; right: 18px; bottom: 18px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.app-toast { min-width: 240px; max-width: 420px; padding: 10px 14px; border-radius: 10px; font-size: 13px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .18); color: #fff; background: var(--c-teal-600, #0F766E); transition: opacity .5s, transform .5s; }
.app-toast--error { background: #B42318; }
.app-toast.is-hiding { opacity: 0; transform: translateY(8px); }

.flash { border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; font-size: 13px; font-weight: 500; display: flex; gap: 8px; align-items: flex-start; }
.flash--success { background: #ECFDF3; color: #05603A; border: 1px solid #ABEFC6; }
.flash--error { background: #FEF3F2; color: #912018; border: 1px solid #FECDCA; }
.flash--info { background: #EFF8FF; color: #175CD3; border: 1px solid #B2DDFF; }
.flash--warn { background: #FFFAEB; color: #93370D; border: 1px solid #FEDF89; }

.ud-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: #FEF0C7; color: #93370D;
  font-size: 9px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; vertical-align: middle; }

.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .kpi-row, .kpi-row--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .kpi-row, .kpi-row--3 { grid-template-columns: 1fr; } }
.kpi { background: var(--c-surface, #fff); border: 1px solid rgba(15, 23, 42, .07); border-radius: 12px; padding: 12px 14px; }
.kpi__label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-text-500, #667085); }
.kpi__value { display: block; font-size: 18px; font-weight: 700; color: var(--c-text-900, #101828); margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi__sub { font-size: 11px; color: var(--c-text-500, #667085); }
.kpi--good .kpi__value { color: #067647; }
.kpi--bad .kpi__value { color: #B42318; }

.bar { height: 8px; border-radius: 999px; background: rgba(15, 23, 42, .08); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--c-primary, #1F3864); border-radius: 999px; }

.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.text-good { color: #067647 !important; }
.text-bad { color: #B42318 !important; }
.muted { color: var(--c-text-500, #667085); }
.small-caps { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-text-500, #667085); }

.grid-input { width: 100%; min-width: 70px; padding: 4px 6px; border: 1px solid rgba(15, 23, 42, .15); border-radius: 6px; text-align: right; font-size: 12px; }
.grid-input:disabled, .grid-input[readonly] { background: rgba(15, 23, 42, .04); color: var(--c-text-500, #667085); }
.calc-cell { background: #FFFBEA; }
.not-in-plan { background: repeating-linear-gradient(45deg, rgba(15, 23, 42, .03), rgba(15, 23, 42, .03) 6px, transparent 6px, transparent 12px); color: var(--c-text-500, #98A2B3); }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-compact th, .table-compact td { padding: 6px 8px; font-size: 12px; vertical-align: middle; }
.table-compact thead th { white-space: nowrap; }

.tabs-line { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid rgba(15, 23, 42, .1); margin: 0 0 14px; }
.tabs-line a, .tabs-line button { border: 0; background: none; padding: 8px 12px; font-weight: 600; font-size: 13px; color: var(--c-text-500, #667085);
  border-bottom: 2px solid transparent; text-decoration: none; }
.tabs-line a.active, .tabs-line button.active { color: var(--c-text-900, #101828); border-bottom-color: var(--c-primary, #1F3864); }

.summary-strip { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 10px 14px; border-radius: 12px; background: var(--c-surface, #fff);
  border: 1px solid rgba(15, 23, 42, .07); margin-bottom: 14px; font-size: 12px; }
.summary-strip b { font-size: 14px; }

.los-q { border: 1px solid rgba(15, 23, 42, .08); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: var(--c-surface, #fff); }
.los-q__head { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 13px; }
.los-q__opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.los-q__opts label { border: 1px solid rgba(15, 23, 42, .15); border-radius: 8px; padding: 5px 10px; font-size: 12px; cursor: pointer; }
.los-q__opts input { margin-right: 6px; }
.los-q__opts label.is-prev { border-style: dashed; }
.los-q--drop { border-color: #FDA29B; background: #FFFBFA; }
.los-q--rise { border-color: #75E0A7; background: #F6FEF9; }

.status-chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.status-Champion, .status-Advocate { background: #ECFDF3; color: #067647; }
.status-Supporter { background: #EFF8FF; color: #175CD3; }
.status-Neutral { background: #F2F4F7; color: #344054; }
.status-Sceptic { background: #FFFAEB; color: #B54708; }
.status-Blocker { background: #FEF3F2; color: #B42318; }
.veto { color: #B42318; font-weight: 700; font-size: 11px; }

.wizard-steps { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.wizard-steps span { padding: 4px 10px; border-radius: 999px; background: rgba(15, 23, 42, .06); font-size: 12px; font-weight: 600; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 6px 0; border-bottom: 1px dashed rgba(15, 23, 42, .08); font-size: 13px; }
.check-list .fa-check-circle { color: #067647; }
.check-list .fa-circle-o { color: #98A2B3; }

@media print {
  .app-sidebar, .app-topbar, .page-header__actions, .no-print, .app-breadcrumb, .dataTables_filter, .dt-search, .dt-length, .dt-paging { display: none !important; }
  .app-main { margin: 0 !important; }
  body { background: #fff !important; }
}

/* =========================================================================
   Prototype look for the server-rendered pages
   (same markup patterns as the HTML prototype: panels, tables, toolbars)
   ========================================================================= */

/* panel heading sits inside the panel padding, like the prototype's panel-body > panel-heading */
.panel > .panel-heading { padding: var(--sp-5) var(--sp-5) 0; margin-bottom: 0; }
.panel > .panel-heading + .panel-body { padding-top: var(--sp-4); }
.panel > .panel-heading .panel-heading__action { padding-top: 2px; }

/* footer under every page */
.app-footer { padding-top: 0 !important; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--c-text-400); }

/* small tables inside panels (prototype .sm-t) */
.sm-t { width: 100%; border-collapse: collapse; font-size: var(--fs-base); }
.sm-t th { text-align: left; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--c-text-400); padding: 8px 10px; border-bottom: 1px solid rgba(15,23,42,.08); white-space: nowrap; background: none; }
.sm-t td { padding: 8px 10px; border-bottom: 1px solid rgba(15,23,42,.05); vertical-align: middle; color: var(--c-text-700); }
.sm-t tbody tr:last-child td { border-bottom: 0; }
.sm-t tbody tr:hover td { background: color-mix(in srgb, var(--c-teal-600, #0F766E) 4%, transparent); }
.sm-t th.num, .sm-t td.num, .sm-t .n { text-align: right; font-variant-numeric: tabular-nums; }
.sm-t tfoot td, .sm-t tfoot th { font-weight: 700; border-top: 2px solid rgba(15,23,42,.1); border-bottom: 0; }
.sm-t input.form-control, .sm-t select.form-select { height: 32px; padding: 4px 8px; font-size: var(--fs-base); }
.sm-t a { font-weight: 600; }

/* long lists: DataTables laid out as data-toolbar / data-table / data-table-footer */
.panel:has(> .panel-body > .dt-container) { background: none; border: 0; box-shadow: none; }
.panel:has(> .panel-body > .dt-container) > .panel-body { padding: 0; }
.dt-container { font-size: var(--fs-sm); }
.dt-container > .dt-layout-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; margin: 0; }
.dt-container > .dt-layout-row:first-child { padding: var(--sp-4); border: 1px solid var(--c-border); border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--c-surface); }
.dt-container > .dt-layout-row.dt-layout-table { display: block; border: 1px solid var(--c-border); border-top: 0; overflow-x: auto; background: var(--c-surface); padding: 0; }
.dt-container > .dt-layout-row:last-child { padding: var(--sp-4); border: 1px solid var(--c-border); border-top: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); background: var(--c-surface); color: var(--c-text-500); }
.dt-container .dt-layout-cell { display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap; }
.dt-container .dt-layout-start { flex: 1 1 260px; }
.dt-container .dt-layout-end { margin-left: auto; }
.dt-container .dt-search { flex: 1 1 260px; position: relative; }
.dt-container .dt-search::before { content: "\f002"; font-family: FontAwesome; position: absolute; left: var(--sp-4); top: 50%; transform: translateY(-50%); color: var(--c-text-400); font-size: 13px; }
.dt-container .dt-search input { width: 100%; border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: 10px 14px 10px 38px; font-size: var(--fs-base); background: var(--c-bg); margin: 0; }
.dt-container .dt-search input:focus { outline: none; border-color: var(--c-teal-600); background: var(--c-surface); box-shadow: 0 0 0 3px var(--c-teal-050); }
.dt-container .dt-search label { display: none; }
.dt-container .dt-length { display: flex; align-items: center; gap: var(--sp-2); }
.dt-container .dt-length label { order: -1; margin: 0; }
.dt-container .dt-length select { border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: 6px 10px; font-size: var(--fs-sm); color: var(--c-text-700); background: var(--c-surface); }
.dt-container .dt-paging nav { display: flex; align-items: center; gap: var(--sp-2); }
.dt-container .dt-paging-button { min-width: 32px; height: 32px; border-radius: var(--radius-sm); border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-text-700); font-size: var(--fs-sm); font-weight: var(--fw-medium); padding: 0 8px; cursor: pointer; }
.dt-container .dt-paging-button:hover:not(.disabled) { background: var(--c-bg); }
.dt-container .dt-paging-button.current { background: var(--theme-gradient-primary); border-color: transparent; color: #fff; }
.dt-container .dt-paging-button.disabled { opacity: .4; cursor: not-allowed; }
.dt-container .dt-paging-button.first, .dt-container .dt-paging-button.last { display: none; }
.dt-container .dt-paging .ellipsis { padding: 0 4px; }
table.data-table.dataTable { margin: 0 !important; min-width: 980px; }
table.data-table.dataTable thead th { position: relative; }
table.data-table.dataTable thead th.dt-orderable-asc, table.data-table.dataTable thead th.dt-orderable-desc { cursor: pointer; padding-right: 26px; }
table.data-table.dataTable thead th .dt-column-order { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); opacity: .55; font-size: 10px; }
table.data-table.dataTable thead th .dt-column-order::before { content: "\f0dc"; font-family: FontAwesome; }
table.data-table.dataTable thead th.dt-ordering-asc .dt-column-order::before { content: "\f0de"; opacity: 1; }
table.data-table.dataTable thead th.dt-ordering-desc .dt-column-order::before { content: "\f0dd"; opacity: 1; }
table.data-table.dataTable td.dt-empty { text-align: center; color: var(--c-text-500); padding: 36px 16px; white-space: normal; }
table.data-table.dataTable td.num, table.data-table.dataTable th.num { text-align: right; }
table.data-table.dataTable td a { color: var(--c-info-600); font-weight: var(--fw-semibold); }
table.data-table.dataTable tbody td { white-space: normal; }

/* Phase 1 helpers from the prototype (every page) */

  /* Phase 1: Salesperson view on its own (no Sales Manager, no quota from above) */
  /* the Weekly Forecast columns and the deal's Manager Score tab stay as in the full UI (user, 8 Oct 2026) */
  #myQuotaNote,
  .p1-hide { display: none !important; }
  /* menu items that depend on another role: shown, marked Under development */
  a[href="__none__"]::after { content: "Under development"; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: #FEF0C7; color: #93370D; font-size: 9px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
  .p1-ud { max-width: 720px; margin: 40px auto; padding: 28px 30px; border: 1px dashed #F5C26B; border-radius: 16px; background: #FFFBEB; text-align: left; }
  .p1-ud h2 { margin: 0 0 6px; font-size: 18px; } .p1-ud p { margin: 6px 0; color: #5B4A1F; } .p1-ud .p1-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #FEF0C7; color: #93370D; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
  .p1-badge { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #E0EAFF; color: #175CD3; font-size: 10px; font-weight: 700; letter-spacing: .04em; vertical-align: middle; }

/* Bell list (13 Oct mockup .p1-pop / .p1-item): the latest items, Mark all as read, See all */
.p1-pop { position: absolute; top: calc(100% + 8px); right: 0; width: min(380px, calc(100vw - 24px)); max-height: 70vh; overflow: auto; z-index: 1060; background: var(--c-surface, #fff);
          border: 1px solid var(--c-border, #E4E7EC); border-radius: 12px; box-shadow: 0 12px 32px rgba(15, 23, 42, .14); }
.p1-pop__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--c-border, #E4E7EC); font-weight: 700; font-size: 13px; }
.p1-pop__head button { border: 0; background: none; color: var(--c-teal-700, #0F766E); font-size: 12px; font-weight: 600; cursor: pointer; }
.p1-item { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--c-border-soft, #F2F4F7); color: inherit; text-decoration: none; font-size: 12px; }
.p1-item:hover, .p1-item.is-on { background: var(--c-bg, #F8FAFC); color: inherit; }
.p1-item i { width: 18px; text-align: center; margin-top: 2px; }
.p1-item b { display: block; font-size: 12.5px; } .p1-item small { color: var(--c-text-500, #667085); }
.p1-item.is-new b::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #F04438; margin-left: 6px; vertical-align: middle; }
.p1-pop__foot { display: block; text-align: center; padding: 9px; font-size: 12px; font-weight: 600; color: var(--c-teal-700, #0F766E); text-decoration: none; }
.p1-pop--search { left: 0; right: auto; width: min(460px, calc(100vw - 24px)); }
.p1-grp { padding: 8px 14px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-text-500, #667085); }
.p1-pop--search .p1-item i { color: var(--c-teal-600, #0E7C66); }
.topbar-search { position: relative; }
.p1-empty { padding: 22px 14px; text-align: center; color: var(--c-text-500, #667085); font-size: 12px; }
.p1-bell { position: relative; display: inline-block; }
.app-shell:not(.is-collapsed) .sidebar-brand__mark--img{display:none;}

/* MA-34: a very long company or deal name is cut with … (full name on hover) so the list keeps its columns */
.cell-clip{display:block;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
