:root{
  --bg:#090a09;
  --bg-2:#0d0f0c;
  --surface:rgba(255,255,255,.065);
  --surface-strong:rgba(255,255,255,.095);
  --line:rgba(255,255,255,.105);
  --line-soft:rgba(255,255,255,.065);
  --text:#f5f5f1;
  --muted:#9da39b;
  --muted-2:#70766f;
  --citron:#d9df78;
  --citron-deep:#bfc760;
  --champagne:#d7bc72;
  --stone:#b6b9b1;
  --danger:#dd8b82;
  --shadow:0 22px 70px rgba(0,0,0,.34);
  --radius:24px;
}
*{box-sizing:border-box}
html{background:var(--bg);color-scheme:dark;scroll-behavior:smooth}
body{margin:0;color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Helvetica Neue",Arial,sans-serif;-webkit-font-smoothing:antialiased;background:
  radial-gradient(1100px 700px at 86% -10%,rgba(198,203,94,.09),transparent 62%),
  radial-gradient(900px 620px at -8% 22%,rgba(215,188,114,.065),transparent 58%),
  linear-gradient(180deg,#080908 0%,#0b0c0b 55%,#080908 100%);min-height:100vh}
button,input{font:inherit}
button{cursor:pointer}
.ambient{position:fixed;border-radius:50%;filter:blur(110px);pointer-events:none;z-index:0;opacity:.28}
.ambient-a{width:420px;height:420px;right:-150px;top:10vh;background:rgba(214,220,110,.2)}
.ambient-b{width:520px;height:520px;left:-260px;bottom:-180px;background:rgba(190,162,88,.15)}
.glass-panel{background:linear-gradient(145deg,rgba(255,255,255,.085),rgba(255,255,255,.042));border:1px solid var(--line);box-shadow:inset 0 1px 0 rgba(255,255,255,.06),var(--shadow);backdrop-filter:blur(28px) saturate(135%);-webkit-backdrop-filter:blur(28px) saturate(135%)}
.eyebrow{font-size:11px;line-height:1.2;letter-spacing:.15em;text-transform:uppercase;color:var(--muted);font-weight:700}

/* LOGIN */
.login-body{min-height:100vh;display:grid;place-items:center;padding:28px;overflow:hidden}
.login-shell{position:relative;z-index:1;width:min(1040px,100%);min-height:590px;border-radius:34px;display:grid;grid-template-columns:1.1fr .9fr;overflow:hidden}
.login-brand{padding:56px;display:flex;flex-direction:column;justify-content:space-between;position:relative;background:linear-gradient(160deg,rgba(255,255,255,.025),rgba(216,222,113,.035))}
.login-brand:after{content:"";position:absolute;width:330px;height:330px;border-radius:50%;right:-160px;bottom:-120px;background:rgba(210,218,103,.08);filter:blur(40px)}
.login-logo{width:min(360px,88%);height:auto;display:block;margin:0 0 56px;filter:drop-shadow(0 14px 35px rgba(0,0,0,.28))}
.login-brand h1{font-size:clamp(40px,5vw,66px);letter-spacing:-.055em;line-height:.98;margin:16px 0 20px;max-width:650px;font-weight:650}
.login-brand p{max-width:520px;font-size:18px;line-height:1.55;color:#bfc3bb;margin:0}
.powered{font-size:12px;color:var(--muted);letter-spacing:.02em}.powered strong{color:#dadbd6;font-weight:600}
.login-form-wrap{display:grid;place-items:center;padding:46px;background:rgba(0,0,0,.16);border-left:1px solid var(--line-soft)}
.login-form{width:min(360px,100%)}
.login-form-head{display:flex;gap:15px;align-items:center;margin-bottom:34px}
.login-form h2{font-size:30px;letter-spacing:-.035em;margin:5px 0 0;font-weight:620}
.mini-mark{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(135deg,var(--citron),#d8c76f);color:#11130d;font-size:14px;font-weight:850;letter-spacing:-.04em;box-shadow:inset 0 1px 0 rgba(255,255,255,.38)}
.login-form label{display:block;color:#c9ccc5;font-size:13px;font-weight:600;margin:0 0 18px}
.login-form input{margin-top:8px;width:100%;height:50px;border:1px solid rgba(255,255,255,.11);border-radius:15px;background:rgba(255,255,255,.055);color:var(--text);padding:0 15px;outline:none;transition:.2s}
.login-form input:focus{border-color:rgba(217,223,120,.52);background:rgba(255,255,255,.075);box-shadow:0 0 0 4px rgba(217,223,120,.055)}
.login-form input::placeholder{color:#656b64}
.password-wrap{position:relative}.password-wrap input{padding-right:60px}.ghost-icon{position:absolute;right:10px;top:17px;border:0;background:transparent;color:#adb1aa;font-size:12px;padding:8px}
.primary-button{width:100%;height:52px;border:0;border-radius:16px;background:linear-gradient(135deg,#e4e89c,var(--citron-deep));color:#11130d;font-weight:760;display:flex;align-items:center;justify-content:space-between;padding:0 19px;box-shadow:0 12px 30px rgba(0,0,0,.2);transition:transform .2s,filter .2s}
.primary-button:hover{transform:translateY(-1px);filter:brightness(1.03)}.primary-button:disabled{opacity:.55;cursor:wait;transform:none}
.login-note{text-align:center;margin-top:16px;color:var(--muted-2);font-size:11px}
.login-error{padding:11px 13px;border-radius:12px;background:rgba(221,139,130,.09);border:1px solid rgba(221,139,130,.18);color:#e7aaa4;font-size:12px;margin:-2px 0 15px}

/* DASH */
.dashboard-body{min-width:320px}.app-shell{position:relative;z-index:1;display:grid;grid-template-columns:252px minmax(0,1fr);gap:18px;padding:18px;min-height:100vh}
.sidebar{position:sticky;top:18px;height:calc(100vh - 36px);border-radius:28px;padding:22px 16px 16px;display:flex;flex-direction:column;overflow:hidden}
.brand-lockup{padding:6px 8px 24px;border-bottom:1px solid var(--line-soft)}
.sidebar-logo{width:184px;max-width:100%;display:block;margin:0 0 15px}
.brand-copy{display:flex;align-items:baseline;gap:7px}.brand-copy strong{font-size:15px;letter-spacing:-.02em}.brand-copy span{font-size:10px;color:var(--muted)}
.side-nav{display:grid;gap:6px;padding-top:20px}.nav-item{width:100%;border:1px solid transparent;background:transparent;color:#9fa49d;border-radius:14px;padding:11px 12px;display:flex;gap:10px;align-items:center;text-align:left;transition:.18s}.nav-item:hover{background:rgba(255,255,255,.045);color:#eceee8}.nav-item.active{background:rgba(217,223,120,.095);border-color:rgba(217,223,120,.12);color:#f2f4dd}.nav-icon{width:20px;color:var(--citron);font-size:15px;text-align:center}.sidebar-spacer{flex:1}
.system-card{border:1px solid var(--line-soft);background:rgba(0,0,0,.14);border-radius:18px;padding:13px;margin:10px 0}.system-title,.system-row{display:flex;align-items:center;justify-content:space-between}.system-title{font-size:11px;color:#d2d4ce;margin-bottom:11px}.live-dot{width:7px;height:7px;border-radius:50%;background:var(--citron);box-shadow:0 0 0 3px rgba(217,223,120,.08)}.system-row{font-size:10px;color:var(--muted);padding:5px 0}.system-row b{font-weight:650;color:#cfd2ca}.logout-button{border:0;background:transparent;color:#7e847c;font-size:11px;text-align:left;padding:8px 12px}.logout-button:hover{color:#d9dbd5}
.main-content{min-width:0;padding:14px 12px 36px}.topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin:6px 0 24px}.topbar h1{font-size:44px;line-height:1;letter-spacing:-.055em;margin:6px 0 8px;font-weight:650}.topbar p{color:var(--muted);margin:0;font-size:12px}.top-actions{display:flex;align-items:center;gap:10px}.range-control{padding:5px;border-radius:16px;display:flex;gap:2px;box-shadow:none}.range-control button{border:0;background:transparent;color:#92978f;border-radius:11px;padding:9px 11px;font-size:11px;white-space:nowrap;transition:.18s}.range-control button:hover{color:#e8eae3;background:rgba(255,255,255,.035)}.range-control button.active{background:rgba(245,245,241,.1);color:#f6f6f2;box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}.icon-button{width:42px;height:42px;border-radius:14px;border:1px solid var(--line);color:#d6d8d2;font-size:18px}.icon-button:hover{background:rgba(255,255,255,.1)}
.custom-range{margin:-10px 0 18px auto;width:max-content;padding:10px;border-radius:17px;display:flex;align-items:end;gap:9px}.custom-range label{display:grid;gap:5px;color:var(--muted);font-size:10px}.custom-range input{height:36px;border-radius:11px;border:1px solid var(--line);background:rgba(255,255,255,.055);color:#eee;padding:0 10px}.small-primary{height:36px;border:0;border-radius:11px;background:var(--citron);color:#11130d;font-weight:700;font-size:11px;padding:0 14px}
.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:12px}.kpi-card{border-radius:20px;padding:18px;min-height:130px;position:relative;overflow:hidden}.kpi-card:after{content:"";position:absolute;inset:auto -55px -75px auto;width:140px;height:140px;border-radius:50%;background:rgba(255,255,255,.018)}.accent-card{background:linear-gradient(145deg,rgba(217,223,120,.12),rgba(255,255,255,.045));border-color:rgba(217,223,120,.17)}.kpi-label{font-size:11px;color:var(--muted);margin-bottom:17px}.kpi-value{font-size:34px;letter-spacing:-.045em;font-weight:630}.kpi-value.money{font-size:29px}.kpi-delta{margin-top:11px;font-size:10px;color:#90968d}.kpi-delta.positive{color:#cbd58a}.kpi-delta.negative{color:#dca29b}.kpi-sub{margin-top:11px;font-size:10px;color:var(--muted-2)}
.dashboard-grid{display:grid;gap:12px;margin-bottom:12px}.dashboard-grid.two-thirds{grid-template-columns:minmax(0,1.65fr) minmax(320px,.85fr)}.dashboard-grid.split{grid-template-columns:repeat(2,minmax(0,1fr))}.panel{border-radius:22px;padding:18px;margin-bottom:12px;min-width:0}.dashboard-grid .panel{margin-bottom:0}.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:16px}.panel-head h2{font-size:20px;letter-spacing:-.035em;margin:4px 0 0;font-weight:620}.legend-note{font-size:9px;color:var(--muted-2);padding-top:3px}.panel-chip{font-size:9px;border:1px solid var(--line);padding:6px 9px;border-radius:999px;color:var(--muted)}.chart-wrap{position:relative;height:250px}.chart-wrap.tall{height:310px}
.funnel{display:grid;gap:12px;padding-top:2px}.funnel-row{display:grid;grid-template-columns:1fr auto;gap:8px}.funnel-meta{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#c6c9c2}.funnel-meta span:last-child{color:var(--muted)}.funnel-track{grid-column:1/-1;height:8px;border-radius:99px;background:rgba(255,255,255,.045);overflow:hidden}.funnel-fill{height:100%;border-radius:99px;background:linear-gradient(90deg,var(--citron-deep),var(--champagne));min-width:2px;transition:width .55s ease}
.table-wrap{overflow:auto;border:1px solid var(--line-soft);border-radius:16px}table{width:100%;border-collapse:collapse;min-width:760px}th,td{text-align:left;padding:12px 13px;border-bottom:1px solid var(--line-soft);font-size:11px}th{position:sticky;top:0;background:rgba(18,19,17,.94);color:#7f857d;text-transform:uppercase;letter-spacing:.07em;font-size:9px;font-weight:700}td{color:#c8cbc4}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:rgba(255,255,255,.025)}.status-pill{display:inline-flex;padding:5px 8px;border-radius:999px;border:1px solid var(--line);font-size:9px;text-transform:capitalize}.status-paid{color:#dfe7a5;background:rgba(217,223,120,.07);border-color:rgba(217,223,120,.14)}.status-refunded,.status-failed,.status-overdue{color:#e0a19a;background:rgba(221,139,130,.06);border-color:rgba(221,139,130,.14)}
.compact-list{display:grid;gap:7px}.compact-row{display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--line-soft);padding:9px 0}.compact-row:last-child{border-bottom:0}.compact-main{min-width:0}.compact-title{font-size:11px;color:#d4d6d0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.compact-sub{font-size:9px;color:var(--muted-2);margin-top:3px}.compact-value{font-size:11px;color:#c9cc95;white-space:nowrap}.empty-state{padding:36px 12px;text-align:center;color:#6e746c;font-size:11px;border:1px dashed var(--line-soft);border-radius:14px}.footer{text-align:center;color:#565b55;font-size:9px;padding:24px 0 0}.toast{position:fixed;right:24px;bottom:24px;z-index:20;border-radius:15px;padding:12px 15px;font-size:11px;color:#dfe1da}
@media(max-width:1180px){.app-shell{grid-template-columns:210px minmax(0,1fr)}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar{flex-direction:column}.top-actions{width:100%}.range-control{overflow:auto;max-width:calc(100vw - 300px)}}
@media(max-width:820px){.app-shell{display:block;padding:10px}.sidebar{position:relative;top:auto;height:auto;margin-bottom:10px}.side-nav,.system-card,.sidebar-spacer{display:none}.brand-lockup{border:0;padding-bottom:4px}.sidebar-logo{width:150px}.brand-copy{display:none}.logout-button{position:absolute;right:15px;top:18px}.main-content{padding:10px 2px 28px}.dashboard-grid.two-thirds,.dashboard-grid.split{grid-template-columns:1fr}.topbar h1{font-size:38px}.top-actions{align-items:flex-start}.range-control{max-width:calc(100vw - 70px)}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.custom-range{width:100%;margin-top:-8px;flex-wrap:wrap}.login-shell{grid-template-columns:1fr;min-height:auto}.login-brand{display:none}.login-form-wrap{padding:40px 24px;min-height:560px;border-left:0}.chart-wrap.tall{height:280px}}
@media(max-width:520px){.kpi-grid{grid-template-columns:1fr}.kpi-card{min-height:118px}.topbar{margin-bottom:16px}.topbar h1{font-size:34px}.panel{padding:15px;border-radius:19px}.range-control button{padding:8px 9px}.login-body{padding:12px}.login-shell{border-radius:25px}.login-form-wrap{padding:32px 20px}.chart-wrap{height:230px}}

/* ==========================================================================
   CS PRO INTELLIGENCE — LIGHT PREMIUM V3
   Visual inspirado na organização do TDP, mantendo identidade CS PRO.
   ========================================================================== */

:root{
  --bg:#eef1e9;
  --bg-2:#f5f6f2;
  --surface:rgba(255,255,255,.84);
  --surface-strong:rgba(255,255,255,.96);
  --line:rgba(25,34,26,.105);
  --line-soft:rgba(25,34,26,.072);
  --text:#151a15;
  --muted:#697067;
  --muted-2:#8a9188;

  --citron:#d8df72;
  --citron-deep:#b8c22c;
  --champagne:#c7ab62;
  --stone:#a8aea5;
  --danger:#ba625a;

  --shadow:0 12px 34px rgba(27,36,27,.065);
  --shadow-soft:0 5px 18px rgba(27,36,27,.045);
}

/* PAGE */
html{
  background:#eef1e9;
  color-scheme:light;
}

body.dashboard-body{
  color:var(--text);
  background:
    radial-gradient(900px 520px at 88% -8%,rgba(210,220,92,.13),transparent 60%),
    radial-gradient(760px 520px at 18% 0%,rgba(197,171,98,.075),transparent 66%),
    linear-gradient(180deg,#f3f5ef 0%,#edf0e8 58%,#f2f4ee 100%);
}

.dashboard-body .ambient{
  opacity:.34;
  filter:blur(125px);
}
.dashboard-body .ambient-a{background:rgba(205,216,75,.18)}
.dashboard-body .ambient-b{background:rgba(199,171,98,.12)}

/* GLASS / PANELS */
.dashboard-body .glass-panel{
  background:linear-gradient(145deg,rgba(255,255,255,.91),rgba(255,255,255,.73));
  border:1px solid rgba(38,47,38,.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    0 12px 34px rgba(27,36,27,.06);
  backdrop-filter:blur(24px) saturate(122%);
  -webkit-backdrop-filter:blur(24px) saturate(122%);
}

.dashboard-body .panel{
  background:rgba(255,255,255,.88);
}

/* SIDEBAR — mantém contraste e identidade CS PRO */
.dashboard-body .sidebar{
  background:
    radial-gradient(360px 280px at 100% 0%,rgba(213,222,94,.075),transparent 72%),
    linear-gradient(180deg,#182119 0%,#101711 100%);
  border-color:rgba(255,255,255,.075);
  box-shadow:0 18px 45px rgba(23,31,23,.12);
}

.dashboard-body .brand-lockup{
  border-bottom-color:rgba(255,255,255,.08);
}

.dashboard-body .brand-copy strong{color:#f4f5f0}
.dashboard-body .brand-copy span{color:#929a91}

.dashboard-body .nav-item{color:#a8afa7}
.dashboard-body .nav-item:hover{
  color:#f1f3ec;
  background:rgba(255,255,255,.055);
}
.dashboard-body .nav-item.active{
  color:#171d15;
  background:linear-gradient(135deg,#e0e687,#d1da60);
  border-color:rgba(255,255,255,.18);
  box-shadow:0 8px 20px rgba(190,199,65,.13);
}
.dashboard-body .nav-item.active .nav-icon{color:#171d15}
.dashboard-body .nav-icon{color:#d6de73}

.dashboard-body .system-card{
  background:rgba(255,255,255,.035);
  border-color:rgba(255,255,255,.075);
}
.dashboard-body .system-title{color:#d8dcd5}
.dashboard-body .system-row{color:#8f978e}
.dashboard-body .system-row b{color:#dde1da}
.dashboard-body .logout-button{color:#899188}
.dashboard-body .logout-button:hover{color:#f1f3ed}
.dashboard-body .live-dot{
  background:#dce577;
  box-shadow:0 0 0 3px rgba(220,229,119,.12);
}

/* TOP */
.dashboard-body .topbar h1{color:#171c17}
.dashboard-body .topbar p{color:#747b72}
.dashboard-body .eyebrow{color:#7d857b}

.dashboard-body .range-control{
  background:rgba(255,255,255,.72);
  border-color:rgba(27,36,27,.09);
  box-shadow:0 4px 16px rgba(27,36,27,.035);
}
.dashboard-body .range-control button{color:#737a71}
.dashboard-body .range-control button:hover{
  color:#20261f;
  background:rgba(31,39,31,.045);
}
.dashboard-body .range-control button.active{
  color:#181d17;
  background:#ffffff;
  box-shadow:0 2px 8px rgba(30,38,30,.075);
}
.dashboard-body .icon-button{
  color:#3e463d;
  background:rgba(255,255,255,.76);
}
.dashboard-body .icon-button:hover{background:#fff}

.dashboard-body .custom-range{
  background:rgba(255,255,255,.91);
}
.dashboard-body .custom-range label{color:#747c72}
.dashboard-body .custom-range input{
  background:#fff;
  border-color:rgba(31,40,31,.12);
  color:#20261f;
}
.dashboard-body .small-primary{
  background:#d8df72;
  color:#151a13;
}

/* KPI */
.dashboard-body .kpi-card{
  background:rgba(255,255,255,.91);
}
.dashboard-body .kpi-card:after{
  background:rgba(200,208,91,.055);
}
.dashboard-body .accent-card{
  background:
    radial-gradient(240px 140px at 100% 0%,rgba(213,222,94,.14),transparent 70%),
    linear-gradient(145deg,#ffffff,#fbfcf6);
  border-color:rgba(177,188,61,.18);
}
.dashboard-body .kpi-label{color:#7d857b}
.dashboard-body .kpi-value{color:#161b16}
.dashboard-body .kpi-delta{color:#899087}
.dashboard-body .kpi-delta.positive{color:#69760e}
.dashboard-body .kpi-delta.negative{color:#b55c55}
.dashboard-body .kpi-sub{color:#949b92}

/* HEADERS / TEXT */
.dashboard-body .panel-head h2{color:#1b211b}
.dashboard-body .panel-description{color:#7d857b}
.dashboard-body .legend-note{color:#939a91}
.dashboard-body .panel-chip{
  color:#6f766d;
  background:#f7f8f4;
  border-color:#dde1da;
}

/* FUNNEL */
.dashboard-body .funnel-meta{color:#373e36}
.dashboard-body .funnel-meta span:last-child{color:#7d847b}
.dashboard-body .funnel-track{background:#eaede7}
.dashboard-body .funnel-fill{
  background:linear-gradient(90deg,#cbd64f,#c7ab62);
}

/* TABLES */
.dashboard-body .table-wrap{
  background:rgba(255,255,255,.76);
  border-color:#e0e4dc;
}
.dashboard-body table{background:transparent}
.dashboard-body th{
  background:rgba(247,248,244,.97);
  color:#7c847a;
  border-bottom-color:#dde1da;
}
.dashboard-body td{
  color:#3a4239;
  border-bottom-color:#eaede8;
}
.dashboard-body tbody tr:hover{background:#fafbf8}

/* STATUS */
.dashboard-body .status-pill{border-color:#dfe3dc}
.dashboard-body .status-paid{
  color:#69740e;
  background:#f3f6d8;
  border-color:#dde5a3;
}
.dashboard-body .status-refunded,
.dashboard-body .status-failed,
.dashboard-body .status-overdue{
  color:#a55650;
  background:#fbefed;
  border-color:#efd2cf;
}

/* LISTAS */
.dashboard-body .compact-row{border-bottom-color:#e8ebe6}
.dashboard-body .compact-title{color:#343b33}
.dashboard-body .compact-sub{color:#8a9188}
.dashboard-body .compact-value{color:#6d7814}
.dashboard-body .empty-state{
  color:#858c83;
  border-color:#d9ddd6;
  background:#fafbf8;
}
.dashboard-body .footer{color:#9ca29a}

/* --------------------------------------------------------------------------
   AQUISIÇÃO — cara de TDP + logos de plataforma mais evidentes
   -------------------------------------------------------------------------- */

.dashboard-body .acquisition-overview{
  background:rgba(255,255,255,.90);
}

.dashboard-body .source-card-grid{
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:12px;
}

.dashboard-body .source-card{
  background:
    radial-gradient(230px 130px at 100% 0%,rgba(210,219,92,.085),transparent 72%),
    linear-gradient(145deg,#fff,#fbfcf8);
  border-color:#e0e4dc;
  box-shadow:
    inset 0 1px 0 #fff,
    0 7px 20px rgba(31,40,31,.045);
}
.dashboard-body .source-card:before{
  background:none;
}
.dashboard-body .source-card:hover{
  transform:translateY(-2px);
  border-color:rgba(176,187,57,.34);
  background:#fff;
  box-shadow:0 12px 28px rgba(31,40,31,.075);
}

.dashboard-body .source-identity{
  gap:11px;
}

/* Ícones agora parecem logos de plataforma, não badges genéricos */
.dashboard-body .brand-icon{
  width:38px;
  height:38px;
  flex:0 0 38px;
  border-radius:12px;
  background:#fff;
  border:1px solid #e3e6e0;
  box-shadow:0 3px 10px rgba(27,36,27,.065);
}
.dashboard-body .brand-icon img{
  width:21px;
  height:21px;
  opacity:1;
}

.dashboard-body .source-name-wrap strong{
  color:#282f27;
  font-size:12px;
}
.dashboard-body .source-name-wrap span{
  color:#8b9289;
}

.dashboard-body .source-rank{
  color:#8a9188;
  background:#f7f8f5;
  border-color:#e3e6e0;
}

.dashboard-body .source-revenue{
  color:#171d16;
}
.dashboard-body .source-revenue-label{color:#969d94}

.dashboard-body .source-card-metrics{
  border-top-color:#e8ebe6;
}
.dashboard-body .source-card-metrics span{color:#91988f}
.dashboard-body .source-card-metrics strong{color:#313831}
.dashboard-body .source-card-footer{color:#7f867d}

/* Árvore Plataforma > Campanha > Criativo */
.dashboard-body .acquisition-tree{
  background:#fff;
  border-color:#dfe3dc;
  box-shadow:0 5px 18px rgba(28,37,28,.035);
}
.dashboard-body .acq-grid-header{
  background:#f5f7f2;
  color:#7e867c;
  border-bottom-color:#dfe3dc;
}
.dashboard-body .acq-grid-row{
  border-bottom-color:#e9ece7;
}
.dashboard-body details.acq-platform > summary{
  background:#fff;
}
.dashboard-body details.acq-platform > summary:hover{
  background:#fbfcf8;
}
.dashboard-body .acq-platform[open] > summary{
  background:#f9faf6;
}
.dashboard-body .acq-campaign-list{
  background:#fbfcf9;
}
.dashboard-body details.acq-campaign > summary{
  background:#fbfcf9;
}
.dashboard-body details.acq-campaign > summary:hover{
  background:#f6f8f3;
}
.dashboard-body .acq-creative-list{
  background:#f7f8f5;
}
.dashboard-body .acq-creative-row{
  background:#fafbf8;
}

.dashboard-body .acq-origin .brand-icon{
  width:34px;
  height:34px;
  flex-basis:34px;
  border-radius:11px;
}
.dashboard-body .acq-origin .brand-icon img{
  width:19px;
  height:19px;
}
.dashboard-body .acq-copy strong{color:#303730}
.dashboard-body .acq-copy span{color:#929990}
.dashboard-body .tree-chevron{color:#81897f}
.dashboard-body .tree-rail{background:#d8ddd5}
.dashboard-body .acq-number{color:#555d54}
.dashboard-body .acq-number.strong{color:#1d241c}
.dashboard-body .acq-number.money{color:#6b7612}
.dashboard-body .acq-no-creative{color:#929990}

/* Cards/gráficos */
.dashboard-body canvas{filter:none}

/* Tooltip-like toasts */
.dashboard-body .toast{
  color:#f3f5ef;
  background:rgba(22,29,22,.94);
  border-color:rgba(255,255,255,.08);
}

/* MOBILE */
@media(max-width:980px){
  body.dashboard-body{
    background:linear-gradient(180deg,#f3f5ef,#edf0e8);
  }

  .dashboard-body .sidebar{
    background:linear-gradient(180deg,#182119,#111812);
  }

  .dashboard-body .source-card-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:520px){
  .dashboard-body .source-card-grid{
    grid-template-columns:1fr;
  }

  .dashboard-body .source-card{
    border-radius:17px;
  }
}


/* ==========================================================================
   AQUISIÇÃO V4 — PLATAFORMA + LOGO / CAMPANHA / CRIATIVO
   ========================================================================== */

.source-breakdown{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding-top:4px;
}

.source-breakdown-row{
  display:grid;
  grid-template-columns:minmax(150px,1.15fr) minmax(100px,1fr) 74px;
  align-items:center;
  gap:14px;
  min-height:54px;
  padding:8px 0;
  border-bottom:1px solid rgba(30,40,30,.07);
}

.source-breakdown-row:last-child{border-bottom:0}

.source-breakdown-brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.brand-icon{
  width:30px;
  height:30px;
  flex:0 0 30px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:#fff;
  border:1px solid #e0e4dc;
  box-shadow:0 2px 7px rgba(28,37,28,.055);
}

.brand-icon img{
  width:18px;
  height:18px;
  display:block;
  object-fit:contain;
}

.source-breakdown-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.source-breakdown-copy strong{
  color:#343b33;
  font-size:11px;
  font-weight:650;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.source-breakdown-copy span{
  color:#969d94;
  font-size:8.5px;
  font-weight:500;
}

.source-breakdown-bar{
  width:100%;
  height:6px;
  overflow:hidden;
  border-radius:999px;
  background:#e9ece6;
}

.source-breakdown-bar span{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#c8d446,#d8df72);
  box-shadow:0 1px 3px rgba(174,186,42,.16);
}

.source-breakdown-result{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  line-height:1.1;
}

.source-breakdown-result strong{
  color:#252c24;
  font-size:11px;
  font-weight:760;
}

.source-breakdown-result span{
  color:#969d94;
  font-size:8px;
}

.acquisition-detail{overflow:hidden}

.acquisition-head{
  gap:16px;
  align-items:flex-start;
}

.acq-metric-header,
.acq-grid-row{
  display:grid;
  grid-template-columns:minmax(260px,1.7fr) repeat(4,minmax(72px,.55fr)) minmax(96px,.75fr) minmax(70px,.55fr);
  align-items:center;
  gap:10px;
}

.acq-metric-header{
  padding:0 15px 9px;
  color:#8b9288;
  font-size:7px;
  font-weight:760;
  letter-spacing:.105em;
  text-transform:uppercase;
}

.acq-metric-header span:not(:first-child){text-align:right}

.acquisition-tree{
  overflow:hidden;
  border:1px solid #dfe3dc;
  border-radius:16px;
  background:#fff;
}

.acq-platform,
.acq-campaign{margin:0}

.acq-platform > summary,
.acq-campaign > summary{
  list-style:none;
  cursor:pointer;
}

.acq-platform > summary::-webkit-details-marker,
.acq-campaign > summary::-webkit-details-marker{display:none}

.acq-grid-row{
  min-height:62px;
  padding:11px 15px;
  border-bottom:1px solid #e8ebe6;
}

.acq-platform > summary{background:#fff}
.acq-platform > summary:hover{background:#fbfcf8}
.acq-platform[open] > summary{background:#fafbf7}

.acq-campaign-list{background:#fbfcf9}

.acq-campaign > summary{
  padding-left:52px;
  background:#fbfcf9;
}

.acq-campaign > summary:hover{background:#f6f8f3}

.acq-creative-list{background:#f7f8f5}

.acq-creative-row{
  padding-left:86px;
  background:#fafbf8;
}

.acq-origin{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.acq-origin-campaign{gap:8px}
.acq-origin-creative{position:relative}

.acq-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.acq-copy strong{
  color:#333a32;
  font-size:10px;
  font-weight:650;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.acq-copy span{
  color:#959c93;
  font-size:8px;
}

.tree-chevron{
  display:inline-grid;
  place-items:center;
  width:16px;
  flex:0 0 16px;
  color:#80877d;
  font-size:15px;
  transition:transform .16s ease;
}

details[open] > summary .tree-chevron{transform:rotate(90deg)}

.tree-rail{
  width:14px;
  height:1px;
  background:#d7dcd4;
  flex:0 0 14px;
}

.acq-number{
  color:#5d655c;
  font-size:9px;
  text-align:right;
  font-variant-numeric:tabular-nums;
}

.acq-number.strong{
  color:#222921;
  font-weight:750;
}

.acq-number.money{
  color:#6c7713;
  font-weight:650;
}

.acq-no-creative{
  padding:14px 86px;
  color:#929990;
  font-size:9px;
  border-bottom:1px solid #e8ebe6;
}

.panel-description{
  margin:5px 0 0;
  color:#7f877d;
  font-size:9px;
  line-height:1.45;
}

@media(max-width:900px){
  .acq-metric-header{display:none}

  .acq-grid-row{
    grid-template-columns:minmax(220px,1fr) repeat(2,72px);
  }

  .acq-grid-row .acq-number:nth-of-type(2),
  .acq-grid-row .acq-number:nth-of-type(3),
  .acq-grid-row .acq-number:nth-of-type(4),
  .acq-grid-row .acq-number:nth-of-type(7){
    display:none;
  }
}

@media(max-width:620px){
  .source-breakdown-row{
    grid-template-columns:minmax(130px,1fr) 82px 55px;
    gap:9px;
  }

  .source-breakdown-bar{height:5px}

  .acquisition-tree{overflow-x:auto}

  .acq-grid-row{min-width:560px}
}

