@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-heading: 'Figtree', -apple-system, sans-serif;

  --color-primary: #202223;
  --color-green: #008060;
  --color-red: #d72c0d;
  --color-blue: #005bd3;
  --color-orange: #c05717;
  --color-border: #e1e3e5;
  --color-bg: #f7f7f7;
  --color-text: #202223;
  --color-muted: #6d7175;

  --shadow-card: 0 .5625rem .625rem -.5rem #00000021,
                 0 -.125rem .25rem #ffffff80,
                 0 .125rem .0625rem -.0625rem #0000000d,
                 0 0 0 .0625rem #00000012;
  
  --shadow-button-active: 0 0 .25rem #0000000d inset,
                          0 .0625rem .125rem #0000001a inset;
  
  --font-sm: 11px;
  --font-base: 13px;
  --font-md: 14px;
  --font-lg: 16px;

  --radius: 8px;
  --radius-lg: 12px;
  --gap: 12px;
}

body { font-family: var(--font-body); }
h1, h2, h3, h4 { font-family: var(--font-heading); }
  
.kb-flow-bg {
  background-color: #fafafa;
  background-image: radial-gradient(circle, #d0d0d0 1px, transparent 1px);
  background-size: 20px 20px;
  border-radius: 8px;
  padding: 20px 16px;
}

.mval,
.mlabel,
.msub,
.pbtn,
.nav-item,
.ctitle,
.ttitle, 
.set-title,
.sec-title,
.da-metric-val,
.ct-hero-name,
.ct-mval,
#welcome-greeting {
  font-family: var(--font-heading);
}

.kb-flow-card {
  transition: box-shadow .15s, transform .15s;
}
.kb-flow-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  transform: translateY(-1px);
}
.kb-checkpoint-popup {
  position: absolute;
  background: #1a1a1a;
  border-radius: 10px;
  padding: 6px;
  box-shadow: var(--shadow-card);
  z-index: 100;
  display: none;
  min-width: 200px;
}
.kb-checkpoint-popup.open { display: block; }
  
.kb-timerule-panel {
  position: fixed;
  top: 0; right: -420px;
  width: 380px;
  height: 100vh;
  background: #fff;
  box-shadow: var(--shadow-card);
  z-index: 500;
  transition: right .3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
}
.kb-timerule-panel.open { right: 0; }
.kb-timerule-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.3);
  z-index: 499;
  display: none;
}
.kb-timerule-overlay.open { display: block; }
/* Checkpoint side panel (zelfde stijl als tijdregel) */
.kb-cp-panel {
  position: fixed;
  top: 0; right: -440px;
  width: 400px;
  height: 100vh;
  background: #fff;
  box-shadow: var(--shadow-card);
  z-index: 500;
  transition: right .3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
}

.da-card-grid-survival {
  grid-template-columns: minmax(240px, 2fr) minmax(360px, 3fr);
}

.kb-cp-panel.open { right: 0; }
.kb-cp-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.3);
  z-index: 499;
  display: none;
}
.kb-cp-overlay.open { display: block; }
/* Flow card condities — read-only badges */
.kb-cond-badge-metric { background:#f0f6ff;border:1px solid #c0d4f0;border-radius:5px;padding:2px 7px;font-size:11px;font-weight:700;color:#005bd3; }
.kb-cond-badge-val { background:#f7f7f7;border:1px solid #e1e3e5;border-radius:5px;padding:2px 7px;font-size:11px;font-weight:700;color:#202223; }
.kb-cond-badge-kill { background:#fff0ef;border:1px solid #f0b0b0;border-radius:5px;padding:2px 8px;font-size:11px;font-weight:700;color:#d72c0d; }
.kb-cond-badge-cont { background:#e3f8ee;border:1px solid #a8d9c4;border-radius:5px;padding:2px 8px;font-size:11px;font-weight:700;color:#008060; }
.kb-spend-badge { background:#f0f0f0;border:1px solid #e1e3e5;border-radius:20px;padding:3px 10px;font-size:11px;font-weight:700;color:#303030; }
.kb-time-badge { background:#fff4e4;border:1px solid #f0c070;border-radius:20px;padding:3px 10px;font-size:11px;font-weight:700;color:#c05717; }
  
.kb-checkpoint-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 7px;
  cursor: pointer;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  transition: background .1s;
}
.kb-checkpoint-opt:hover { background: #2a2a2a; }
  
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;background:#fbfbfb;color:#202223;font-size:14px;min-height:100vh}
#login-screen{position:fixed;inset:0;background:#f7f7f7;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:1.5rem;z-index:999}
.login-logo{font-size:13px;font-weight:600;color:#303030;letter-spacing:.05em}
.login-box{background:#fff;border:1px solid #e1e3e5;border-radius:12px;padding:2rem;width:340px;display:flex;flex-direction:column;gap:1rem}
.login-box h2{font-size:18px;font-weight:600}
.field{background:#fff;border:1px solid #c9cccf;border-radius:8px;padding:8px 12px;color:#202223;font-size:14px;width:100%;outline:none;transition:border-color .15s;font-family:inherit}

.field:focus {
  border-color: #005bd3;
  box-shadow: var(--shadow-focus);
}

#comp-list .trow:hover {
  background: #f9f9f9;
}

.chart-card canvas {
  max-height: 180px;
}


.btn-p{background:#404040;color:#fff;border:none;border-radius:8px;padding:9px 16px;font-weight:600;font-size:14px;cursor:pointer;width:100%;font-family:inherit}
.btn-p:hover{background:#202223}
.btn-g{background:#008060;color:#fff;border:none;border-radius:8px;padding:6px 14px;font-size:13px;font-weight:600;cursor:pointer;font-family:inherit}
.btn-g:hover{background:#006e52}
.login-err{color:#d72c0d;font-size:13px;text-align:center;display:none}
#app{display:none;min-height:100vh}
.topbar{background:#1a1a1a;padding:0 20px;display:flex;align-items:center;justify-content:space-between;height:52px;position:sticky;top:0;z-index:50}
.topbar-brand{font-size:14px;font-weight:600;color:#fff}
.store-pill{display:flex;align-items:center;gap:6px;background:#2a2a2a;border:1px solid #3a3a3a;border-radius:8px;padding:5px 10px;font-size:13px;font-weight:500;color:#e3e3e3;cursor:pointer}
.store-pill:hover{background:#333}
.live-wrap{position:relative}
.live-badge{display:flex;align-items:center;gap:6px;font-size:12px;color:#a0a0a0;cursor:pointer}
.ldot{width:7px;height:7px;border-radius:50%;background:#1db954;flex-shrink:0}
.ldot.warn{background:#f0a500;animation:blink 1.5s infinite}
.ldot.err{background:#d72c0d;animation:blink 1s infinite}
@keyframes blink{0%,100%{opacity:1}50%{opacity:.3}}

.spopup {
  position: absolute;
  top: 32px;
  right: 0;
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  width: 290px;
  z-index: 200;
  display: none;
  box-shadow: var(--shadow-card);
}

.spopup.open{display:block}
.imp-tb{background:transparent;border:1px solid #e1e3e5;border-radius:4px;padding:3px 8px;font-size:12px;cursor:pointer;font-family:inherit}
.imp-tb:hover{background:#f7f7f7}
.si{display:flex;align-items:flex-start;justify-content:space-between;padding:6px 0;border-bottom:1px solid #f1f1f1;font-size:13px;gap:8px}
.si:last-child{border-bottom:none}
.s-ok{color:#008060;font-size:11px;font-weight:600;white-space:nowrap}
.s-warn{color:#c05717;font-size:11px;font-weight:600;white-space:nowrap}
.s-err{color:#d72c0d;font-size:11px;font-weight:600;white-space:nowrap}
.twbox{background:#fff4e4;border:1px solid #f0c070;border-radius:8px;padding:10px 12px;margin-top:10px;font-size:12px;color:#7d4e1b;line-height:1.5}
.twsteps{margin-top:6px;padding-left:14px;font-size:11px;color:#7d4e1b;line-height:1.8}
.nav-bar{background:#fff;border-bottom:1px solid #e1e3e5;display:flex;align-items:center;padding:0 20px;overflow-x:auto;gap:0}
.nav-tab{padding:12px 14px;font-size:13px;font-weight:500;color:#303030;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap;transition:color .15s;display:flex;align-items:center;gap:5px;flex-shrink:0}
.nav-tab.active{color:#202223;border-bottom-color:#202223}
.nav-tab:hover:not(.active){color:#202223}
.badge{background:#fff4e4;color:#c05717;border-radius:20px;padding:1px 6px;font-size:11px;font-weight:600}
.badge-g{background:#e3f8ee;color:#008060}
.badge-b{background:#e8f0fe;color:#005bd3}
.page {
  display: none;
  width: 100%;
  max-width: 100%;
  padding: 24px;
  margin: 0;
}

.page.active {
  display: block;
}
.prow{display:flex;gap:6px;margin-bottom:16px;flex-wrap:wrap}
.pbtn{padding:6px 12px;border-radius:8px;font-size:13px;font-weight:500;cursor:pointer;border:1px solid #e1e3e5;background:#fff;color:#303030;transition:all .15s;font-family:inherit}

.pbtn.active {
  background: #fafafa;
  color: #303030;
  box-shadow: var(--shadow-button-active);
}

.srow{display:flex;gap:6px;margin-bottom:16px;flex-wrap:wrap}
.sbtn{padding:8px 12px;border-radius:8px;border: none;font-size:13px;font-weight:500;cursor:pointer;box-shadow: 0rem -.0625rem 0rem 0rem #b5b5b5 inset, 0rem 0rem 0rem .0625rem #0000001a inset, 0rem .03125rem 0rem .09375rem #FFF inset;background:#fff;color:#303030;transition:all .15s;font-family:inherit;display:flex;align-items:center;gap:5px}

.sbtn.active {
  background: #fafafa;
  color: #303030;
  box-shadow: var(--shadow-button-active);
}

.metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:14px}
.metrics3{display:none}

.mcard {
  background: #fff;
  box-shadow: var(--shadow-card);
  border-radius: 8px;
  padding: 14px 16px;
}

.mlabel{font-size:12px;color:#303030;margin-bottom:6px;font-weight:500}
.mval{font-size:22px;font-weight:600;color:#202223;line-height:1;margin-bottom:4px}
.msub{font-size:12px;color:#303030}
.cg{color:#008060}.cr{color:#d72c0d}.cb{color:#005bd3}.ca{color:#c05717}
.alert-warn{background:#fff4e4;border:1px solid #c05717;border-radius:8px;padding:10px 14px;display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;cursor:pointer}
.alert-warn:hover{border-color:#a04010}
.at{font-size:13px;font-weight:600;color:#7d4e1b}
.as{font-size:12px;color:#c05717;margin-top:1px}

.chart-card {
  background: #fff;
  box-shadow: var(--shadow-card);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
}

.chart-hdr{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;flex-wrap:wrap;gap:8px}
.ctitle{font-size:13px;font-weight:600;color:#202223}
.legend{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.leg{display:flex;align-items:center;gap:5px;font-size:12px;color:#303030}
.leg-line{width:18px;height:2px;border-radius:1px}
.leg-dash{width:18px;border-top:2px dashed #84cbea}

.tbl {
  background: #fff;
  box-shadow: var(--shadow-card);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
}

.tbl-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  box-shadow: var(--shadow-card);
}

.ttitle{font-size:13px;font-weight:600}
.thead{display:grid;padding:8px 14px;background:#f7f7f7;border-bottom:1px solid #e1e3e5}
.th{font-size:11px;font-weight:600;color:#303030;text-transform:uppercase;letter-spacing:.04em;cursor:pointer;user-select:none;display:flex;align-items:center;gap:3px}
.th:hover{color:#202223}
.trow{display:grid;padding:10px 14px;border-bottom:1px solid #e1e3e5;transition:background .1s;align-items:center}
.trow:last-child{border-bottom:none}
.trow:hover{background:#fafafa}
.trow.best{background:#f0fff8}
.trow.worst{background:#fff0ef}
.td{font-size:13px;color:#202223;font-variant-numeric:tabular-nums}
.td.muted{color:#303030;font-size:12px}
.td.miss{color:#c05717;font-size:12px;cursor:pointer}
.td.miss:hover{text-decoration:underline}
.totrow{display:grid;padding:10px 14px;background:#f7f7f7;border-top:2px solid #e1e3e5}
.totlabel{font-size:12px;font-weight:700;color:#202223;text-transform:uppercase;letter-spacing:.04em}
.nbtn{background:transparent;border:none;cursor:pointer;font-size:14px;padding:2px 4px}
.btn-sm{background:#fff;border: none;border-radius:8px;padding:8px 12px;box-shadow: 0rem -.0625rem 0rem 0rem #b5b5b5 inset, 0rem 0rem 0rem .0625rem #0000001a inset, 0rem .03125rem 0rem .09375rem #FFF inset;font-size:12px;font-weight:500;color:#303030;cursor:pointer;display:flex;align-items:center;gap:5px;font-family:inherit}
.btn-sm:hover{border-color:#c9cccf;color:#202223}
.day-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin-bottom:14px}
.dcard{background:#fff;border:1px solid #e1e3e5;border-radius:8px;padding:10px 8px;text-align:center}
.dcard.best{border-color:#a8d9c4;background:#f0fff8}
.dcard.worst{border-color:#f0b0b0;background:#fff0ef}
.dname{font-size:11px;font-weight:700;color:#303030;text-transform:uppercase;letter-spacing:.06em;margin-bottom:6px}
.dval{font-size:13px;font-weight:600;color:#202223;margin-bottom:2px}
.dcnt{font-size:10px;color:#303030;margin-top:3px}
.cogs-item{background:#fff;border:1px solid #e1e3e5;border-radius:8px;padding:12px 14px;margin-bottom:8px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;transition:all .32s;overflow:hidden}
.cogs-item.removing{opacity:0;transform:translateX(24px);max-height:0;padding:0;margin:0;border-width:0}
.csug{background:#f0fff8;border:1px solid #a8d9c4;border-radius:8px;padding:5px 8px;margin-top:6px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.csug-t{font-size:12px;color:#008060}
.btn-use{font-size:12px;color:#008060;background:#fff;border:1px solid #a8d9c4;border-radius:5px;padding:2px 8px;cursor:pointer;font-family:inherit}
.cinp-row{display:flex;align-items:center;gap:6px;flex-shrink:0}
.csym{font-size:13px;color:#303030}
.cinp{background:#fff;border:1px solid #c9cccf;border-radius:8px;padding:6px 8px;color:#202223;font-size:13px;width:80px;outline:none;transition:border-color .15s;font-family:inherit}
.cinp:focus{border-color:#005bd3;box-shadow:0 0 0 3px rgba(0,91,211,.1)}
.toggle{width:36px;height:20px;background:#e1e3e5;border-radius:10px;cursor:pointer;position:relative;transition:background .2s;flex-shrink:0}
.toggle.on{background:#008060}
.tknob{position:absolute;top:2px;left:2px;width:16px;height:16px;background:#fff;border-radius:50%;transition:transform .2s}
.toggle.on .tknob{transform:translateX(16px)}
.btn-edit{font-size:12px;background:transparent;border:1px solid #e1e3e5;border-radius:5px;padding:4px 10px;cursor:pointer;font-family:inherit}
.btn-edit:hover{border-color:#005bd3;color:#005bd3}
.btn-del{font-size:12px;background:transparent;border:1px solid #e1e3e5;border-radius:5px;padding:4px 10px;cursor:pointer;font-family:inherit}
.btn-del:hover{border-color:#d72c0d;color:#d72c0d}
.camp-card{background:#fff;border:1px solid #e1e3e5;border-radius:8px;margin-bottom:14px;overflow:hidden}
.camp-hdr{padding:12px 14px;border-bottom:1px solid #e1e3e5;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
.camp-name{font-size:14px;font-weight:600}
.camp-meta{font-size:12px;color:#303030;margin-top:2px}
.abox{margin:12px 14px;border-radius:8px;padding:10px 14px;font-size:13px;line-height:1.6}
.a-scale{background:#e3f8ee;border:1px solid #a8d9c4;color:#004c3f}
.a-hold{background:#f0f6ff;border:1px solid #a0c0f0;color:#003d82}
.a-wait{background:#f7f7f7;border:1px solid #e1e3e5;color:#303030}
.a-kill{background:#fff0ef;border:1px solid #f0b0b0;color:#7a1a1a}
.alabel{font-weight:700;font-size:12px;text-transform:uppercase;letter-spacing:.06em;margin-bottom:4px}
.camp-dhead{display:grid;grid-template-columns:.8fr 1fr 1fr 1fr 1fr 1fr 1fr;padding:8px 14px;background:#f7f7f7;border-bottom:1px solid #e1e3e5}
.camp-drow{display:grid;grid-template-columns:.8fr 1fr 1fr 1fr 1fr 1fr 1fr;padding:9px 14px;border-bottom:1px solid #e1e3e5;align-items:center}
.camp-drow:last-child{border-bottom:none}
.dbadge{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;font-size:11px;font-weight:700;background:#f7f7f7;border:1px solid #e1e3e5;color:#303030}
.dbadge.active{background:#e3f8ee;border-color:#a8d9c4;color:#008060}
.spill{display:inline-block;padding:2px 8px;border-radius:20px;font-size:11px;font-weight:600}
.sp-r{background:#e3f8ee;color:#008060}
.sp-k{background:#fff0ef;color:#d72c0d}
.add-camp{display:flex;align-items:center;gap:8px;background:#fff;border:2px dashed #e1e3e5;border-radius:8px;padding:14px;cursor:pointer;color:#303030;font-size:13px;width:100%;font-family:inherit}
.add-camp:hover{border-color:#008060;color:#008060}
.conn-title{font-size:12px;font-weight:600;color:#303030;text-transform:uppercase;letter-spacing:.06em;margin-bottom:10px;margin-top:16px}
.conn-title:first-child{margin-top:0}
.step-card{background:#fff;border:1px solid #e1e3e5;border-radius:8px;padding:14px;margin-bottom:8px;display:flex;gap:12px}
.step-num{width:28px;height:28px;border-radius:50%;background:#f7f7f7;border:1px solid #e1e3e5;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;flex-shrink:0}
.step-done{background:#e3f8ee;border-color:#a8d9c4;color:#008060}
.step-title{font-size:13px;font-weight:600;margin-bottom:4px}
.step-desc{font-size:12px;color:#303030;line-height:1.7}
.set-sec{margin-bottom:20px}
.set-title{font-size:12px;font-weight:600;color:#303030;text-transform:uppercase;letter-spacing:.06em;margin-bottom:10px}
.set-row{background:#fff;border:1px solid #e1e3e5;border-radius:8px;padding:12px 14px;margin-bottom:6px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.set-label{font-size:13px;font-weight:500}
.set-desc{font-size:12px;color:#303030;margin-top:2px}
.set-ctrl select,.set-ctrl input{background:#fff;border:1px solid #c9cccf;border-radius:8px;padding:6px 10px;color:#202223;font-size:13px;outline:none;font-family:inherit}
.set-ctrl select:focus,.set-ctrl input:focus{border-color:#005bd3;box-shadow:0 0 0 3px rgba(0,91,211,.1)}
.status-bar{background:#fff;border-top:1px solid #e1e3e5;padding:0 20px;height:36px;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#303030;margin-top:auto}
.logout-btn{background:transparent;border:1px solid #e1e3e5;border-radius:8px;padding:3px 10px;font-size:12px;color:#303030;cursor:pointer;font-family:inherit}
.logout-btn:hover{border-color:#d72c0d;color:#d72c0d}
.empty-state{padding:2.5rem;text-align:center;color:#303030;font-size:13px;background:#fff;border:1px solid #e1e3e5;border-radius:8px}
.sec-title{font-size:13px;font-weight:600;color:#202223;margin-bottom:12px}
.modal-ov{position:fixed;inset:0;background:rgba(0,0,0,.45);display:none;align-items:center;justify-content:center;z-index:300}
.modal-ov.open{display:flex}
.modal-box{background:#fff;border-radius:12px;padding:1.5rem;width:380px;display:flex;flex-direction:column;gap:10px;max-height:90vh;overflow-y:auto}
.modal-box h3{font-size:15px;font-weight:600}
.modal-box textarea{border:1px solid #c9cccf;border-radius:8px;padding:8px 10px;font-size:13px;color:#202223;resize:vertical;min-height:80px;outline:none;font-family:inherit}
.modal-box textarea:focus{border-color:#005bd3}
.modal-actions{display:flex;gap:8px;justify-content:flex-end}
.btn-cancel{background:#fff;border:1px solid #e1e3e5;border-radius:8px;padding:6px 14px;font-size:13px;cursor:pointer;font-family:inherit}
.frow{display:flex;flex-direction:column;gap:4px}
.flabel{font-size:12px;font-weight:500;color:#303030}
.gc7{grid-template-columns:1.5fr 1fr 1fr 1fr 1fr 0.8fr 0.6fr}
#sl-dot-shopify, #sl-dot-facebook, #sl-dot-killbot {
  cursor: pointer;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  flex-shrink: 0;
  transition: transform .15s;
}
#sl-dot-shopify:hover, #sl-dot-facebook:hover, #sl-dot-killbot:hover {
  transform: scale(1.3);
}
@media(max-width:700px){
  .metrics{grid-template-columns:repeat(2,1fr)}
  .mval{font-size:18px}
  .gc7{grid-template-columns:1.2fr 1fr 1fr 1fr}
  .gc7>*:nth-child(n+5){display:none}
  .camp-dhead,.camp-drow{grid-template-columns:.6fr 1fr 1fr 1fr}
  .camp-dhead>*:nth-child(n+5),.camp-drow>*:nth-child(n+5){display:none}
  .day-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .page{padding:12px}
  .topbar{padding:0 12px}
}
.cogs-tip{position:relative;cursor:help}
.cogs-tip .tip{display:none;position:absolute;bottom:125%;left:50%;transform:translateX(-50%);background:#fff;color:#000;box-shadow: 0rem .5rem 1.5rem -.5rem #00000047, 0rem .5rem 1rem -.25rem #0000000d, 0rem .1875rem .375rem 0rem #0000000d, 0rem .125rem .25rem 0rem #0000000d, 0rem .0625rem .125rem 0rem #0000000d, 0rem 0rem 0rem .0625rem #0000000f;font-size:11px;padding:5px 8px;border-radius:8px;white-space:normal;min-width:140px;max-width:200px;line-height:1.7;z-index:999;pointer-events:none}
.cogs-tip:hover .tip{display:block}
.cogs-pagination-bar{position:sticky;bottom:0;background:#fff;border-top:1px solid #e1e3e5;padding:10px 14px;display:flex;align-items:center;border-radius:0 0 8px 8px;z-index:10}
.polaris-simple-pagination{display:inline-flex;align-items:center;gap:12px}
.polaris-simple-pagination__buttons{display:inline-flex;overflow:hidden;border-radius:8px;background:#ebebeb}
.polaris-simple-pagination__button{width:36px;height:32px;border:0;padding:0;margin:0;background:#ebebeb;color:#5c5f62;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.polaris-simple-pagination__button:hover{background:#e3e3e3}
.polaris-simple-pagination__button:disabled{opacity:.4;cursor:not-allowed}
.polaris-simple-pagination__button svg{width:20px;height:20px;fill:currentColor;display:block}
.polaris-simple-pagination__count{font-size:13px;font-weight:550;color:#616161;white-space:nowrap}
.cogs-product-name{position:relative;overflow:hidden;white-space:nowrap;min-width:0;max-width:100%}
.cogs-product-name::after{content:'';position:absolute;right:0;top:0;height:100%;width:40px;background:linear-gradient(to right,transparent,#fff);pointer-events:none;opacity:var(--fade-opacity,0)}
.trow:hover .cogs-product-name::after{background:linear-gradient(to right,transparent,#fafafa)} 
.date-picker-wrap{position:absolute;top:110%;left:0;background:#fff;border:1px solid #e1e3e5;border-radius:8px;box-shadow:0 4px 20px rgba(0,0,0,.12);z-index:100;padding:12px;display:none;width:260px}
.date-picker-wrap.open{display:block}
.dp-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;font-size:13px;font-weight:600}
.dp-nav{background:none;border:none;cursor:pointer;font-size:16px;color:#303030;padding:2px 6px}
.dp-nav:hover{color:#202223}
.dp-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
.dp-cell{text-align:center;padding:5px 2px;font-size:12px;cursor:pointer;border-radius:4px;color:#202223}
.dp-cell:hover{background:#f7f7f7}
.dp-cell.today{font-weight:700;color:#005bd3}
.dp-cell.selected{background:#202223;color:#fff;border-radius:4px}
.dp-cell.in-range{background:#f0f0f0}
.dp-cell.disabled{color:#c9cccf;cursor:default}
.dp-cell.dp-head{font-weight:600;color:#303030;cursor:default;font-size:11px}
.dp-cell.dp-head:hover{background:none}
#dp-trigger{width:135px;justify-content:flex-start;flex-shrink:0;}
.app-layout{display:flex;min-height:100vh}
.sidebar{width:252px;min-width:252px;background:#ebebeb;display:flex;flex-direction:column;position:fixed;top:52px;left:0;height:calc(100vh - 52px);z-index:40;overflow-y:auto;overflow-x:visible}
.sidebar-brand{padding:20px 16px 12px;font-size:13px;font-weight:700;color:#fff;letter-spacing:.03em}
.sidebar-store{display:flex;align-items:center;gap:6px;background:#fafafa;border:1px solid #3a3a3a;border-radius:8px;padding:8px 12px;margin:0 12px 8px;cursor:pointer}
.sidebar-store:hover{background:#333}
.sidebar-store-name{font-size:12px;font-weight:500;color:#e3e3e3;flex:1}
.sidebar-nav{flex:1;padding:12px 12px;display:flex;flex-direction:column;gap:2px}
.sidebar-bottom{padding:8px}
.nav-item{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:8px;cursor:pointer;color:#303030;font-size:13px;font-weight:500;transition:all .15s;position:relative}
.nav-item:hover{background:#f1f1f1;color:#303030}
.nav-item.active{background:#fafafa;color:#303030}
.nav-item.active::before{content:'';position:absolute;left:0;top:50%;transform:translateY(-50%);width:3px;height:20px;background:#008060;border-radius:0 2px 2px 0}
.nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin: 4px 8px 4px 0;
  opacity: .7;
}
.nav-item.active svg,.nav-item:hover svg{opacity:1}
.nav-badge{border-radius:20px;padding:1px 7px;font-size:11px;font-weight:600;margin-left:auto}
.main-content {
  margin-left: 252px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 52px;
  min-width: 0;
}

#page-campaign,
#ct-detail-panel {
  min-width: 0;
  max-width: 100%;
}

.main-topbar{background:#fff;padding:0 24px;height:52px;display:flex;align-items:center;justify-content:space-between;position:fixed;top:0;left:0;right:0;z-index:50}
.page{display:none;padding:24px;max-width:none;width:100%}
.page.active{display:block}
.sidebar-live{padding:8px 12px;margin:4px 8px;border-radius:8px;background:#222;position:relative}
.sidebar-live:hover{background:#2a2a2a;cursor:pointer}
.spopup{position:fixed;bottom:auto;left:8px;right:8px;background:#fff;border:1px solid #e1e3e5;border-radius:10px;padding:14px;z-index:9999;display:none;box-shadow:0 -4px 20px rgba(0,0,0,.12);width:236px}
.spopup.open{display:block}
input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
input[type=number]{-moz-appearance:textfield}

.ct-selector-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 20px;
  scrollbar-width: none;
}
.ct-selector-bar::-webkit-scrollbar { display: none; }
.ct-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 20px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #303030;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .15s;
}

.ct-pill.active {
  background: #fafafa;
  color: #303030;
  box-shadow: var(--shadow-button-active);
}

.ct-pill .ct-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ct-dot-active { background: #1db954; }
.ct-dot-inactive { background: #d72c0d; }
.ct-hero {
  background: #fff;
  border: 1px solid #e1e3e5;
  border-radius: 10px;
  padding: 18px 20px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ct-hero-left { display: flex; align-items: flex-start; gap: 14px; flex: 1; min-width: 0; }
.ct-hero-img {
  width: 56px; height: 56px;
  border-radius: 8px;
  border: 1px solid #e1e3e5;
  object-fit: cover;
  flex-shrink: 0;
  background: #f7f7f7;
}
.ct-hero-img-placeholder {
  width: 56px; height: 56px;
  border-radius: 8px;
  border: 1px solid #e1e3e5;
  background: #f7f7f7;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9cccf;
  font-size: 22px;
}
.ct-hero-name {
  font-size: 15px;
  font-weight: 700;
  color: #202223;
  margin-bottom: 4px;
  line-height: 1.3;
}
.ct-hero-sub {
  font-size: 12px;
  color: #6d7175;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 400px;
}
.ct-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
}
.ct-status-active { background: #e3f8ee; color: #008060; }
.ct-status-inactive { background: #fff0ef; color: #d72c0d; }
.ct-sparkline-wrap { flex-shrink: 0; }
.ct-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.ct-mcard {
  background: #fff;
  border: 1px solid #e1e3e5;
  border-radius: 8px;
  padding: 12px 14px;
}
.ct-mlabel { font-size: 11px; font-weight: 600; color: #6d7175; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px; }
.ct-mval { font-size: 20px; font-weight: 700; color: #202223; line-height: 1; margin-bottom: 3px; }
.ct-msub { font-size: 11px; color: #6d7175; }
.ct-product-bar {
  background: #fff;
  border: 1px solid #e1e3e5;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.ct-product-img {
  width: 44px; height: 44px;
  border-radius: 6px;
  border: 1px solid #e1e3e5;
  object-fit: cover;
  flex-shrink: 0;
  background: #f7f7f7;
}
.ct-product-info { flex: 1; min-width: 0; }
.ct-product-name { font-size: 13px; font-weight: 600; color: #202223; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-product-meta { font-size: 12px; color: #6d7175; }
.ct-be-roas { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
.ct-be-label { font-size: 10px; font-weight: 600; color: #6d7175; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.ct-be-val { font-size: 18px; font-weight: 700; color: #202223; }
.ct-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
  gap: 12px;
  margin-bottom: 12px;
}
.ct-daily-table {
  background: #fff;
  border: 1px solid #e1e3e5;
  border-radius: 8px;
  overflow: hidden;
}
.ct-daily-scroll {
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: none;
}

.ct-daily-table {
  overflow-x: auto;
}

.ct-daily-scroll::-webkit-scrollbar { display: none; }
.ct-daily-head {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  padding: 8px 14px;
  background: #f7f7f7;
  border-bottom: 1px solid #e1e3e5;
  position: sticky;
  top: 0;
  z-index: 1;
}
.ct-daily-row {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  padding: 9px 14px;
  border-bottom: 1px solid #f1f1f1;
  align-items: center;
}
.ct-daily-row:last-child { border-bottom: none; }
.ct-daily-row:hover { background: #fafafa; }
.ct-roas-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  min-width: 42px;
}
.ct-roas-g { background: #e3f8ee; color: #008060; }
.ct-roas-y { background: #fff4e4; color: #c05717; }
.ct-roas-r { background: #fff0ef; color: #d72c0d; }
.ct-profit-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.ct-profit-g { background: #e3f8ee; color: #008060; }
.ct-profit-r { background: #fff0ef; color: #d72c0d; }
.ct-sidebar {
  background: #fff;
  border: 1px solid #e1e3e5;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: start;
}
.ct-sidebar-title { font-size: 12px; font-weight: 700; color: #202223; text-transform: uppercase; letter-spacing: .05em; padding-bottom: 8px; border-bottom: 1px solid #f1f1f1; }
.ct-sidebar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.ct-sidebar-label { color: #6d7175; }
.ct-sidebar-val { font-weight: 600; color: #202223; }
.ct-sidebar-divider { border: none; border-top: 1px solid #f1f1f1; margin: 2px 0; }
.ct-graphs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.ct-graph-card {
  background: #fff;
  border: 1px solid #e1e3e5;
  border-radius: 8px;
  padding: 12px 14px;
  overflow: hidden;
}
.ct-graph-title { font-size: 11px; font-weight: 600; color: #6d7175; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.ct-empty-state {
  text-align: center;
  padding: 48px 20px;
  color: #6d7175;
  font-size: 13px;
  background: #fff;
  border: 1px solid #e1e3e5;
  border-radius: 8px;
}
.ct-empty-icon { font-size: 32px; margin-bottom: 10px; }
.ct-no-product {
  background: #fff4e4;
  border: 1px solid #f0c070;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: #7d4e1b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
/* Product picker modal */
.ct-picker-modal { width: 560px; max-width: 95vw; }
.ct-picker-search { margin-bottom: 12px; }
.ct-picker-list { max-height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; scrollbar-width: thin; }
.ct-picker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e1e3e5;
  border-radius: 8px;
  cursor: pointer;
  transition: all .12s;
}
.ct-picker-item:hover { border-color: #008060; background: #f0fff8; }
.ct-picker-item.suggested { border-color: #a8d9c4; background: #f0fff8; }
.ct-picker-item img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; border: 1px solid #e1e3e5; flex-shrink: 0; }
.ct-picker-item-placeholder { width: 40px; height: 40px; border-radius: 6px; background: #f7f7f7; border: 1px solid #e1e3e5; flex-shrink: 0; }
.ct-picker-name { font-size: 13px; font-weight: 500; color: #202223; flex: 1; }
.ct-picker-price { font-size: 12px; color: #6d7175; flex-shrink: 0; }
.ct-picker-suggested-badge { font-size: 10px; font-weight: 700; color: #008060; background: #e3f8ee; border-radius: 10px; padding: 2px 7px; flex-shrink: 0; }
/* FB picker modal */
.ct-fb-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid #e1e3e5;
  border-radius: 8px;
  cursor: pointer;
  transition: all .12s;
  gap: 10px;
}
.ct-fb-item:hover:not(.already) { border-color: #008060; background: #f0fff8; }
.ct-fb-item.already { opacity: .5; cursor: default; }
.ct-loading { text-align: center; padding: 32px; color: #6d7175; font-size: 13px; }
@media(max-width:700px) {
  .ct-metrics-grid { grid-template-columns: 1fr 1fr; }
  .ct-body-grid { grid-template-columns: 1fr; }
  .ct-graphs-row { grid-template-columns: 1fr; }
  .ct-daily-head, .ct-daily-row { grid-template-columns: 1fr 1fr 1fr 70px; }
  .ct-daily-head > *:nth-child(4), .ct-daily-row > *:nth-child(4),
  .ct-daily-head > *:nth-child(5), .ct-daily-row > *:nth-child(5) { display: none; }
}

.comp-country-bar { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:16px; padding:4px 0; }
.comp-country-btn { display:flex; align-items:center; gap:5px; padding:6px 12px; border:1px solid #e1e3e5; border-radius:20px; background:#fff; font-size:13px; font-weight:500; cursor:pointer; font-family:inherit; color:#202223; }
.comp-country-btn:hover { border-color:#202223; }
.comp-country-btn.active { background:#202223; color:#fff; border-color:#202223; }
.comp-country-count { background:#f1f1f1; color:#6d7175; border-radius:20px; padding:1px 6px; font-size:11px; font-weight:700; }
.comp-country-btn.active .comp-country-count { background:rgba(255,255,255,.2); color:#fff; }

.da-page { padding: 24px; }
.da-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.da-period-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.da-period-btn { padding: 6px 12px; border-radius: 8px; border: none; font-size: 13px; font-weight: 500; cursor: pointer; box-shadow: 0rem -.0625rem 0rem 0rem #b5b5b5 inset, 0rem 0rem 0rem .0625rem #0000001a inset, 0rem .03125rem 0rem .09375rem #FFF inset; background: #fff; color: #303030; font-family: inherit; }
.da-period-btn.active { background: #f7f7f7; color: #303030; box-shadow: -.0625rem 0rem .0625rem 0rem #1a1a1a1f inset, .0625rem 0rem .0625rem 0rem #1a1a1a1f inset, 0rem .125rem .0625rem 0rem #1a1a1a33 inset; }
.da-section-label { font-size: 11px; font-weight: 700; color: #6d7175; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; margin-top: 24px; }
.da-section-label:first-of-type { margin-top: 0; }
.da-metrics-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 4px; }
.da-metric-card { background: #fff; border: 1px solid #e1e3e5; border-radius: 8px; padding: 14px 16px; }
.da-metric-title { font-size: 11px; font-weight: 600; color: #6d7175; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.da-metric-val { font-size: 22px; font-weight: 700; color: #202223; line-height: 1; }
.da-metric-sub { font-size: 11px; color: #6d7175; margin-top: 4px; }
.da-card-grid { display: grid; gap: 12px; }
.da-card-grid-2 { grid-template-columns: 1fr 1fr; }
.da-card-grid-2 { grid-template-columns: 1fr 1fr; }
.da-card { background: #fff; border: 1px solid #e1e3e5; border-radius: 8px; padding: 16px; }
.da-card h3 { font-size: 12px; font-weight: 700; color: #202223; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.da-table { width: 100%; border-collapse: collapse; }
.da-table th { font-size: 10px; font-weight: 600; color: #6d7175; text-transform: uppercase; letter-spacing: .04em; padding: 0 0 8px 0; text-align: left; border-bottom: 1px solid #f1f1f1; }
.da-table th:not(:first-child) { text-align: right; }
.da-table td { font-size: 12px; color: #202223; padding: 8px 0; border-bottom: 1px solid #f7f7f7; font-variant-numeric: tabular-nums; }
.da-table td:not(:first-child) { text-align: right; }
.da-table tr:last-child td { border-bottom: none; }
.da-table tr:hover td { background: #fafafa; }
.da-roas-badge { display: inline-flex; align-items: center; justify-content: center; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.da-roas-g { background: #e3f8ee; color: #008060; }
.da-roas-y { background: #fff4e4; color: #c05717; }
.da-roas-r { background: #fff0ef; color: #d72c0d; }
.da-bar-wrap { margin-top: 4px; }
.da-bar-outer { background: #f1f1f1; border-radius: 4px; height: 6px; margin-top: 4px; overflow: hidden; }
.da-bar-inner { height: 100%; border-radius: 4px; background: #13acf0; transition: width .4s; }
.da-bar-inner.green { background: #008060; }
.da-bar-inner.orange { background: #c05717; }
.da-dow-chart { display: flex; align-items: flex-end; gap: 4px; height: 80px; margin-top: 8px; }
.da-dow-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.da-dow-bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.da-dow-bar { width: 100%; border-radius: 3px 3px 0 0; background: rgba(19,172,240,0.35); min-height: 4px; transition: height .4s; }
.da-dow-bar.best { background: #13acf0; }
.da-dow-label { font-size: 10px; color: #6d7175; font-weight: 500; }
.da-dow-val { font-size: 9px; color: #6d7175; }
.da-hour-chart { position: relative; height: 80px; margin-top: 8px; }
.da-hour-chart canvas { width: 100% !important; height: 80px !important; }
.da-funnel { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.da-funnel-step { flex: 1; text-align: center; }
.da-funnel-num { font-size: 20px; font-weight: 700; color: #202223; }
.da-funnel-lbl { font-size: 10px; color: #6d7175; text-transform: uppercase; letter-spacing: .04em; }
.da-funnel-arrow { color: #c9cccf; font-size: 16px; flex-shrink: 0; }
.da-funnel-main { text-align: center; padding: 12px; background: #f7f7f7; border-radius: 8px; margin-bottom: 12px; }
.da-funnel-main strong { font-size: 28px; font-weight: 700; color: #202223; display: block; }
.da-funnel-main span { font-size: 11px; color: #6d7175; text-transform: uppercase; letter-spacing: .05em; }
.da-winners-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.da-winner-stat { padding: 10px 12px; background: #f7f7f7; border-radius: 8px; }
.da-winner-stat span { font-size: 11px; color: #6d7175; display: block; margin-bottom: 3px; }
.da-winner-stat strong { font-size: 16px; font-weight: 700; color: #202223; }
.da-kb-rules { display: flex; flex-direction: column; gap: 8px; }
.da-kb-rule { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 8px; background: #f7f7f7; }
.da-kb-rule-left { font-size: 12px; color: #303030; }
.da-kb-rule-right { font-size: 13px; font-weight: 700; color: #202223; }
.da-kb-rule-right.ok { color: #008060; }
.da-kb-rule-right.warn { color: #c05717; }
.da-loading { text-align: center; padding: 48px; color: #6d7175; font-size: 13px; }
.da-error { background: #fff0ef; border: 1px solid #f0b0b0; border-radius: 8px; padding: 14px; color: #d72c0d; font-size: 13px; }
.da-bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.da-empty { font-size: 12px; color: #6d7175; text-align: center; padding: 20px; }
@media(max-width:900px) {
  .da-metrics-grid { grid-template-columns: repeat(3,1fr); }
  .da-card-grid-4 { grid-template-columns: 1fr 1fr; }
  .da-card-grid-2 { grid-template-columns: 1fr; }
  .da-bottom-grid { grid-template-columns: 1fr; }
  .da-winners-grid { grid-template-columns: 1fr; }
}
@media(max-width:600px) {
  .da-metrics-grid { grid-template-columns: repeat(2,1fr); }
  .da-card-grid-4 { grid-template-columns: 1fr; }
}

  /* ═══════════════════════════════════════════════════
   DA CSS PATCH — Voeg dit toe/vervang in de <style> sectie
   ═══════════════════════════════════════════════════ */

/* NIEUW: 3-koloms grid voor funnel sectie */
.da-card-grid-3 { grid-template-columns: 1fr 1fr 1fr; }

/* VERVANG: DOW chart hoogte verhogen (was 80px) */
.da-dow-chart { display: flex; align-items: flex-end; gap: 4px; height: 120px; margin-top: 8px; }
.da-dow-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; height: 100%; }
.da-dow-bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; min-height: 0; }
.da-dow-bar { width: 100%; border-radius: 3px 3px 0 0; background: rgba(19,172,240,0.25); }

/* VERVANG: Hour chart hoogte (was 80px) */
.da-hour-chart { position: relative; height: 160px; margin-top: 8px; }
.da-hour-chart canvas { width: 100% !important; height: 160px !important; }

/* VERVANG: responsive breakpoint — grid-3 naar 1 kolom op smal scherm */
@media(max-width:900px) {
  .da-metrics-grid { grid-template-columns: repeat(3,1fr); }
  .da-card-grid-4 { grid-template-columns: 1fr 1fr; }
  .da-card-grid-3 { grid-template-columns: 1fr; }
  .da-card-grid-2 { grid-template-columns: 1fr; }
  .da-bottom-grid { grid-template-columns: 1fr; }
  .da-winners-grid { grid-template-columns: 1fr; }
}
@media(max-width:600px) {
  .da-metrics-grid { grid-template-columns: repeat(2,1fr); }
  .da-card-grid-4 { grid-template-columns: 1fr; }
  .da-card-grid-3 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   WEEK OVERZICHT
   ═══════════════════════════════════════════════════ */
.wo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.wo-col { background: #fff; border: 1px solid #e1e3e5; border-radius: 8px; overflow: hidden; }
.wo-col-hdr { padding: 12px 14px; border-bottom: 1px solid #e1e3e5; background: #fafafa; }
.wo-col-title { font-size: 12px; font-weight: 700; color: #202223; }
.wo-col-dates { font-size: 11px; color: #6d7175; margin-top: 2px; }
.wo-col-badge { display: inline-block; margin-top: 6px; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; text-transform: uppercase; letter-spacing: .04em; }
.wo-badge-best { background: #e3f8ee; color: #008060; }
.wo-badge-worst { background: #fff0ef; color: #d72c0d; }
.wo-metric-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; border-bottom: 1px solid #f7f7f7; font-size: 12px; }
.wo-metric-row:last-child { border-bottom: none; }
.wo-metric-label { color: #6d7175; }
.wo-metric-val { font-weight: 700; color: #202223; }
.wo-metric-val.best { color: #008060; }
.wo-metric-val.worst { color: #d72c0d; }
.wo-section-divider { padding: 8px 14px; background: #f7f7f7; font-size: 10px; font-weight: 700; color: #6d7175; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid #e1e3e5; border-top: 1px solid #e1e3e5; }
.wo-cat-row { padding: 8px 14px; border-bottom: 1px solid #f7f7f7; }
.wo-cat-row:last-child { border-bottom: none; }
.wo-cat-name { font-size: 12px; font-weight: 600; color: #202223; margin-bottom: 3px; }
.wo-cat-bar-outer { background: #f1f1f1; border-radius: 4px; height: 6px; overflow: hidden; margin-bottom: 3px; }
.wo-cat-bar-inner { height: 100%; border-radius: 4px; background: #008060; }
.wo-cat-roas { font-size: 11px; color: #6d7175; }
@media(max-width: 900px) {
  .wo-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width: 600px) {
  .wo-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   WINNAAR DNA
   ═══════════════════════════════════════════════════ */
.wdna-metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.wdna-mcard {
  background: #f7f7f7;
  border-radius: 8px;
  padding: 14px 16px;
}
.wdna-mlabel {
  font-size: 12px;
  color: #6d7175;
  margin-bottom: 4px;
  font-family: var(--font-heading);
}
.wdna-mval {
  font-size: 22px;
  font-weight: 600;
  color: #202223;
  line-height: 1;
  font-family: var(--font-heading);
}
.wdna-mval.cg { color: #008060; }
.wdna-msub {
  font-size: 11px;
  color: #a0a0a0;
  margin-top: 2px;
}
.wdna-pattern-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.wdna-pattern-card {
  background: #fff;
  border: 1px solid #e1e3e5;
  border-radius: 12px;
  padding: 16px;
}
.wdna-pattern-title {
  font-size: 13px;
  font-weight: 500;
  color: #6d7175;
  margin-bottom: 12px;
  font-family: var(--font-heading);
}
.wdna-section-label {
  font-size: 11px;
  font-weight: 600;
  color: #6d7175;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.wdna-winner-row {
  background: #fff;
  border: 1px solid #e1e3e5;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 10px;
}
.wdna-winner-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.wdna-winner-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e3f8ee;
  color: #008060;
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wdna-winner-name {
  font-size: 13px;
  font-weight: 500;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wdna-price-badge {
  font-size: 11px;
  background: #f7f7f7;
  border: 1px solid #e1e3e5;
  border-radius: 6px;
  padding: 2px 8px;
  color: #6d7175;
  flex-shrink: 0;
}
.wdna-roas-badge {
  background: #e3f8ee;
  color: #008060;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 20px;
  flex-shrink: 0;
}
.wdna-meta-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.wdna-meta-item {
  font-size: 11px;
}
.wdna-meta-label {
  color: #a0a0a0;
  margin-bottom: 2px;
}
.wdna-meta-val {
  font-weight: 500;
  font-size: 12px;
}
.wdna-creative-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.wdna-creative-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 1px solid #e1e3e5;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
}
.wdna-creative-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wdna-creative-upload-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 2px dashed #e1e3e5;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color .15s;
}
.wdna-creative-upload-placeholder:hover {
  border-color: #008060;
}
.wdna-creative-info {
  flex: 1;
  min-width: 0;
}
.wdna-creative-filename {
  font-size: 11px;
  color: #6d7175;
  margin-bottom: 4px;
}
.wdna-creative-no-file {
  font-size: 12px;
  color: #a0a0a0;
  margin-bottom: 4px;
}
.wdna-creative-btns {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}
.wdna-analyze-btn {
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid #e1e3e5;
  border-radius: 6px;
  background: #f7f7f7;
  cursor: pointer;
  font-family: inherit;
  color: #303030;
}
.wdna-analyze-btn:hover {
  border-color: #005bd3;
  color: #005bd3;
}
.wdna-analysis-box {
  background: #ebf5ff;
  border: 1px solid #b0d8f5;
  border-radius: 8px;
  padding: 10px 12px;
}
.wdna-analysis-label {
  font-size: 10px;
  font-weight: 600;
  color: #005bd3;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.wdna-analysis-text {
  font-size: 12px;
  color: #202223;
  line-height: 1.6;
}
/* DOW bar chart in winnaar DNA */
.wdna-dow-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 12px;
}
.wdna-dow-label {
  width: 20px;
  color: #6d7175;
  flex-shrink: 0;
}
.wdna-dow-track {
  flex: 1;
  height: 8px;
  background: #f1f1f1;
  border-radius: 4px;
  overflow: hidden;
}
.wdna-dow-fill {
  height: 100%;
  border-radius: 4px;
  background: #13acf0;
}
.wdna-dow-fill.best {
  background: #008060;
}
.wdna-dow-count {
  width: 16px;
  text-align: right;
  color: #6d7175;
  flex-shrink: 0;
}
.wdna-dow-count.best {
  font-weight: 700;
  color: #008060;
}
/* Creative format bar */
.wdna-format-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.wdna-format-icon {
  font-size: 13px;
  flex-shrink: 0;
}
.wdna-format-info {
  flex: 1;
}
.wdna-format-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 2px;
}
.wdna-format-bar-outer {
  height: 6px;
  background: #f1f1f1;
  border-radius: 3px;
  overflow: hidden;
}
.wdna-format-bar-inner {
  height: 100%;
  border-radius: 3px;
}
.wdna-format-pct {
  font-size: 11px;
  color: #6d7175;
  width: 30px;
  text-align: right;
  flex-shrink: 0;
}
/* Upload modal drop zone */
.wdna-drop-zone {
  border: 2px dashed #e1e3e5;
  border-radius: 10px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s;
}
.wdna-drop-zone:hover {
  border-color: #13acf0;
}
.wdna-drop-icon {
  font-size: 28px;
  margin-bottom: 8px;
}
.wdna-drop-title {
  font-size: 13px;
  font-weight: 500;
  color: #202223;
  margin-bottom: 4px;
}
.wdna-drop-sub {
  font-size: 12px;
  color: #6d7175;
}
/* Upload modal */
.wdna-upload-modal-inner {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.wdna-upload-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.wdna-upload-modal-title {
  font-size: 15px;
  font-weight: 600;
  color: #202223;
}
.wdna-upload-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #6d7175;
  line-height: 1;
}
.wdna-upload-campaign-label {
  font-size: 12px;
  color: #6d7175;
  margin-bottom: 16px;
  line-height: 1.6;
}
.wdna-upload-preview {
  display: none;
  margin-top: 12px;
  text-align: center;
}
.wdna-upload-preview img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  border: 1px solid #e1e3e5;
}
.wdna-upload-preview-name {
  font-size: 12px;
  color: #6d7175;
  margin-top: 6px;
}
.wdna-upload-status {
  display: none;
  font-size: 12px;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
}
.wdna-upload-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}
@media(max-width: 900px) {
  .wdna-metrics-grid { grid-template-columns: repeat(3, 1fr); }
  .wdna-pattern-grid { grid-template-columns: 1fr; }
  .wdna-meta-grid { grid-template-columns: repeat(3, 1fr); }
}
@media(max-width: 600px) {
  .wdna-metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .wdna-meta-grid { grid-template-columns: repeat(2, 1fr); }
}
