/* Revenue Cockpit — Excel layout (licht) */
.rc-excel-page {
  --rc-green: #92d050;
  --rc-red: #ff0000;
  --rc-orange: #ffc000;
  --rc-yellow: #ffff00;
  --rc-blue: #bdd7ee;
  --rc-border: #b4b4b4;
  --rc-text: #000;
  background: #e8e8e8;
  color: var(--rc-text);
  margin: -1rem -1.25rem 0;
  padding: 0.75rem 1rem 2rem;
  min-height: calc(100vh - 4rem);
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size: 11pt;
}

.persona-ceo .main-topnav:has(.rc-excel-page),
.main-topnav:has(.rc-excel-page) {
  background: #e8e8e8;
}

.rc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  gap: 0.5rem;
}
.rc-toolbar-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: #333;
}
.rc-toolbar-actions { display: flex; align-items: center; gap: 0.35rem; }
.rc-save-hint { font-size: 0.72rem; color: #666; }
.rc-saved { color: #217346; }
.rc-btn {
  border: 1px solid #aaa;
  background: #fff;
  border-radius: 3px;
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
  cursor: pointer;
  color: #222;
}
.rc-btn:hover { background: #f3f3f3; }
.rc-btn-primary { background: #217346; color: #fff; border-color: #217346; }
.rc-btn-import { font-size: 0.72rem; }

.rc-sheet-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid #888;
  box-shadow: 2px 3px 8px rgba(0,0,0,0.12);
}
.rc-sheet-wrap.rc-loading { opacity: 0.65; pointer-events: none; }

.rc-sheet {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
}

.rc-col-logo { width: 72px; }
.rc-col-deal { width: 16%; }
.rc-col-num { width: 10%; }
.rc-col-steps { width: auto; }

.rc-row td {
  border: 1px solid var(--rc-border);
  vertical-align: top;
  padding: 4px 6px;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
  color: #000;
}

/* Header goals — geel */
.rc-row-goals td {
  background: var(--rc-yellow);
  font-weight: 600;
  min-height: 48px;
}
.rc-cell-tagline {
  font-size: 14pt;
  font-style: italic;
  text-align: center;
}

/* Kolomkoppen */
.rc-row-head td {
  background: #fff;
  font-weight: 700;
  border-bottom: 2px solid #666;
}
.rc-th { text-align: left; }
.rc-num { text-align: right; }

/* Row kleuren — exact Excel */
.rc-style-green td:not(.rc-logo-cell) { background: var(--rc-green); }
.rc-style-red td:not(.rc-logo-cell) { background: var(--rc-red); color: #000; }
.rc-style-orange td:not(.rc-logo-cell) { background: var(--rc-orange); }
.rc-style-yellow td:not(.rc-logo-cell) { background: var(--rc-yellow); font-weight: 600; }
.rc-style-blue td:not(.rc-logo-cell) { background: var(--rc-blue); }
.rc-style-white td:not(.rc-logo-cell) { background: #fff; }

.rc-data-row:hover td:not(.rc-logo-cell) { outline: 1px solid #217346; outline-offset: -1px; }
.rc-selected td:not(.rc-logo-cell) { box-shadow: inset 0 0 0 2px #217346; }

.rc-cell-edit:focus {
  outline: 2px solid #217346;
  outline-offset: -2px;
  background: #fff !important;
  color: #000 !important;
}
.rc-cell-num { text-align: right; font-variant-numeric: tabular-nums; }
.rc-cell-deal { font-weight: 600; }
.rc-cell-steps { font-size: 10pt; min-height: 2.5em; }

/* Logo kolom */
.rc-logo-cell {
  background: #fff !important;
  text-align: center;
  vertical-align: middle;
  padding: 6px 4px;
  width: 72px;
}
.rc-logo-cucina .rc-logo-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 6.5pt;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-align: center;
}
.rc-logo-foodlinkk {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 0;
}
.rc-fl-brand {
  font-size: 11pt;
  font-weight: 900;
  color: #111;
  letter-spacing: -0.02em;
}
.rc-fl-brand::first-letter { color: #f5c400; }
.rc-fl-sub {
  font-size: 5.5pt;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #333;
  text-transform: uppercase;
}

/* Rij panel */
.rc-row-panel {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: min(420px, calc(100vw - 2rem));
  background: #fff;
  border: 1px solid #888;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  border-radius: 6px;
  z-index: 100;
  font-size: 0.82rem;
}
.rc-row-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
}
.rc-row-panel-body { padding: 0.65rem 0.75rem; }
.rc-row-panel-body label { display: block; font-size: 0.72rem; color: #555; }
.rc-inline { display: flex; gap: 0.35rem; margin-top: 0.25rem; }
.rc-inline select, .rc-inline input {
  flex: 1;
  border: 1px solid #bbb;
  padding: 0.3rem 0.45rem;
  font-size: 0.78rem;
}
.rc-style-select {
  border: 1px solid #bbb;
  font-size: 0.72rem;
  padding: 0.15rem 0.35rem;
}

.rc-footnote {
  margin: 0.75rem 0 0;
  font-size: 0.72rem;
  color: #666;
}

@media (max-width: 768px) {
  .rc-excel-page { margin: -0.5rem; padding: 0.5rem; }
  .rc-row-panel { left: 0.5rem; right: 0.5rem; width: auto; }
}

/* ── Cockpit: Excel-layout + charts (dark theme) ── */
.rc-page {
  --rc-green: #4ade80;
  --rc-red: #f87171;
  --rc-orange: #fb923c;
  --rc-yellow: #facc15;
  --rc-blue: #60a5fa;
  --rc-green-fill: #22c55e;
  --rc-red-fill: #ef4444;
  --rc-orange-fill: #f59e0b;
  --rc-yellow-fill: #eab308;
  --rc-blue-fill: #3b82f6;
  color: #e2e8f0;
}
.rc-page.rc-mode-sheet { background: transparent; }

.rc-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.rc-header h1 { margin: 0; font-size: 1.25rem; }
.rc-subtitle { margin: 0.25rem 0 0; font-size: 0.72rem; color: #64748b; }
.rc-header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }

.rc-view-toggle {
  display: flex;
  border: 1px solid rgba(148,163,184,0.2);
  border-radius: 8px;
  overflow: hidden;
}
.rc-toggle-btn {
  border: none;
  background: transparent;
  color: #94a3b8;
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  cursor: pointer;
}
.rc-toggle-btn.active { background: rgba(34,197,94,0.15); color: #4ade80; }

.rc-cockpit.rc-loading { opacity: 0.55; pointer-events: none; }

.rc-summary-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.75rem;
  padding: 0.55rem 0.85rem;
  background: rgba(15,20,25,0.6);
  border: 1px solid rgba(148,163,184,0.1);
  border-radius: 10px;
}
.rc-sum-item { display: flex; flex-direction: column; gap: 0.1rem; }
.rc-sum-label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.04em; color: #64748b; }
.rc-sum-item strong { font-size: 0.95rem; color: #34d399; font-variant-numeric: tabular-nums; }
.rc-filter-inline {
  flex: 1 1 140px;
  min-width: 120px;
  max-width: 220px;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(148,163,184,0.18);
  background: #0a0e12;
  color: #e2e8f0;
  font-size: 0.78rem;
  margin-left: auto;
}
.rc-style-dots { display: flex; gap: 0.3rem; align-items: center; }
.rc-dot-btn {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(148,163,184,0.3);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.rc-dot-btn.active { border-color: #fff; box-shadow: 0 0 0 1px #38bdf8; }
.rc-dot-green { background: var(--rc-green); }
.rc-dot-red { background: var(--rc-red); }
.rc-dot-orange { background: var(--rc-orange); }
.rc-dot-yellow { background: var(--rc-yellow); }
.rc-dot-blue { background: var(--rc-blue); }
.rc-dot-white { background: #e2e8f0; }

.rc-visual-wrap {
  overflow: auto;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.12);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  background: #0a0e12;
}

.rc-visual-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  table-layout: fixed;
  background: #0a0e12;
  font-family: inherit;
  font-size: 0.82rem;
  color: #e2e8f0;
}

.rc-col-chart-num { width: 11%; }
.rc-col-donut { width: 64px; }

.rc-visual-goals td {
  background: rgba(234, 179, 8, 0.12);
  color: #fde68a;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 6px 10px;
  border: 1px solid rgba(148,163,184,0.1);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rc-vtagline { font-style: italic; text-align: center; color: #fbbf24; }

.rc-visual-head td {
  background: rgba(15,20,25,0.95);
  color: #64748b;
  font-weight: 600;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border: 1px solid rgba(148,163,184,0.1);
  border-bottom: 1px solid rgba(148,163,184,0.2);
}

.rc-visual-row { cursor: pointer; transition: background 0.12s; }
.rc-visual-row:hover td:not(.rc-logo-cell) { background: rgba(30,41,59,0.55) !important; }
.rc-visual-row.rc-row-open td:not(.rc-logo-cell) { background: rgba(30,58,95,0.35) !important; }
.rc-visual-row.rc-row-open { box-shadow: inset 0 0 0 1px rgba(56,189,248,0.35); }

.rc-visual-row td,
.rc-vcell {
  border: 1px solid rgba(148,163,184,0.08);
  padding: 6px 10px;
  vertical-align: middle;
  line-height: 1.35;
  background: rgba(15,20,25,0.5);
}

.rc-visual-row.rc-style-green td:not(.rc-logo-cell) {
  background: rgba(34, 197, 94, 0.1);
  box-shadow: inset 3px 0 0 var(--rc-green-fill);
}
.rc-visual-row.rc-style-red td:not(.rc-logo-cell) {
  background: rgba(239, 68, 68, 0.1);
  box-shadow: inset 3px 0 0 var(--rc-red-fill);
}
.rc-visual-row.rc-style-orange td:not(.rc-logo-cell) {
  background: rgba(245, 158, 11, 0.1);
  box-shadow: inset 3px 0 0 var(--rc-orange-fill);
}
.rc-visual-row.rc-style-yellow td:not(.rc-logo-cell) {
  background: rgba(234, 179, 8, 0.1);
  box-shadow: inset 3px 0 0 var(--rc-yellow-fill);
  font-weight: 600;
  color: #fde68a;
}
.rc-visual-row.rc-style-blue td:not(.rc-logo-cell) {
  background: rgba(59, 130, 246, 0.1);
  box-shadow: inset 3px 0 0 var(--rc-blue-fill);
}
.rc-visual-row.rc-style-white td:not(.rc-logo-cell) {
  background: rgba(15,20,25,0.5);
  box-shadow: inset 3px 0 0 #475569;
}

.rc-brand-cucina .rc-vdeal { padding-left: 8px; }
.rc-brand-foodlinkk .rc-vdeal { padding-left: 8px; }

.rc-logo-mini { width: 36px; padding: 2px !important; text-align: center; background: transparent !important; }
.rc-logo-xs .rc-logo-ring { width: 26px; height: 26px; font-size: 11px; font-weight: 900; }
.rc-logo-xs.rc-logo-foodlinkk .rc-fl-brand { font-size: 14px; }

.rc-vdeal { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #f1f5f9; }
.rc-vnum { text-align: right; }
.rc-vamount { display: block; font-variant-numeric: tabular-nums; font-size: 0.8rem; font-weight: 600; color: #34d399; }

.rc-mini-bar {
  height: 4px;
  background: rgba(148,163,184,0.15);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}
.rc-mini-bar-fill { height: 100%; border-radius: 2px; min-width: 2px; }
.rc-mini-bar-year { background: #38bdf8 !important; }

.rc-vdonut { text-align: center; padding: 4px !important; }
.rc-donut {
  width: 36px; height: 36px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.rc-donut-label { font-size: 0.58rem; font-weight: 700; color: #e2e8f0; z-index: 1; }
.rc-donut-empty { color: #64748b; font-size: 0.75rem; }

.rc-vsteps {
  font-size: 0.75rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 0;
}
.rc-expand-hint { color: #38bdf8; font-weight: 700; margin-left: 4px; }

.rc-expand-row td { border: 1px solid rgba(148,163,184,0.1); padding: 0; background: #0a0e12; }
.rc-expand-cell { padding: 0 !important; }
.rc-expand-inner {
  display: flex;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(10,14,18,0.98);
  color: #e2e8f0;
  border-top: 1px solid rgba(56,189,248,0.15);
}
.rc-expand-chart { flex: 0 0 140px; }
.rc-bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.5rem;
  height: 72px;
  margin-bottom: 0.5rem;
}
.rc-bar-col { display: flex; flex-direction: column; align-items: center; gap: 2px; height: 100%; justify-content: flex-end; }
.rc-bar-col span { font-size: 0.65rem; color: #64748b; }
.rc-bar-stack {
  width: 28px;
  min-height: 2px;
  background: var(--rc-green-fill);
  border-radius: 3px 3px 0 0;
  transition: height 0.2s;
}
.rc-bar-year { background: #38bdf8; }
.rc-expand-stats { font-size: 0.75rem; }
.rc-expand-stats div { display: flex; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.25rem; }
.rc-expand-stats span { color: #64748b; }
.rc-expand-stats strong { color: #34d399; }
.rc-expand-body { flex: 1; min-width: 0; }
.rc-expand-body h4 { margin: 0 0 0.35rem; font-size: 0.65rem; text-transform: uppercase; color: #64748b; letter-spacing: 0.04em; }
.rc-expand-body p { margin: 0; font-size: 0.82rem; line-height: 1.5; white-space: pre-wrap; color: #cbd5e1; }
.rc-expand-task { margin-top: 0.65rem; }
.rc-expand-task .rc-inline select,
.rc-expand-task .rc-inline input {
  border: 1px solid rgba(148,163,184,0.25);
  background: #0f1419;
  color: #e2e8f0;
  padding: 0.3rem 0.45rem;
  font-size: 0.78rem;
  border-radius: 4px;
}

.rc-page .rc-excel-page {
  margin: 0;
  padding: 0;
  min-height: auto;
  background: #e8e8e8;
  color: #000;
  border-radius: 8px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .rc-summary-strip { gap: 0.5rem; }
  .rc-filter-inline { margin-left: 0; max-width: none; flex: 1 1 100%; }
  .rc-expand-inner { flex-direction: column; }
}
