:root {
  --navy: #182544; --blue: #336699; --bright: #1771F1; --cyan: #59C0E4;
  --ink: #1d2533; --grey: #5b6577; --line: #dfe8f1; --bg: #F0F6FA; --card: #ffffff;
  --good: #1f9d6b; --bad: #d1453b;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.45 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
.report { max-width: 720px; margin: 0 auto; padding: 0 16px 32px; }

.hero { background: var(--navy); color: #fff; margin: 0 -16px 18px; padding: 22px 20px 26px;
  border-radius: 0 0 22px 22px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%; background: radial-gradient(circle, rgba(89,192,228,.35), transparent 70%); }
.brand { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #b9c8e0; letter-spacing: .02em; }
.logo-plate { display: inline-flex; background: #fff; border-radius: 10px; padding: 6px 10px; margin-right: 6px; }
.logo-plate img { display: block; height: 24px; width: auto; }
.hero h1 { margin: 10px 0 0; font-size: 30px; font-weight: 700; letter-spacing: -.01em; }
.badge { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 99px;
  background: rgba(255,255,255,.12); font-size: 12.5px; color: #dce6f5; }

.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { background: var(--card); border-radius: 16px; padding: 14px 16px; border: 1px solid var(--line); }
.kpi span { display: block; color: var(--grey); font-size: 13px; }
.kpi b { display: block; font-size: 22px; font-weight: 700; margin-top: 2px; white-space: nowrap; }
.kpi-main { grid-column: 1 / -1; background: linear-gradient(120deg, var(--bright), var(--blue)); color: #fff; border: 0; }
.kpi-main span { color: #d8e6ff; } .kpi-main b { font-size: 32px; }
.kpi-main.neg { background: linear-gradient(120deg, #c0392b, #8e2a20); }
.kpi-main em { font-style: normal; font-size: 13px; opacity: .92; }

h2 { font-size: 17px; margin: 26px 0 10px; color: var(--navy); }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.bar summary { list-style: none; cursor: pointer; } .bar summary::-webkit-details-marker { display: none; }
.bar-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.bar-sum { white-space: nowrap; } .bar-sum small { color: var(--grey); font-weight: 400; margin-left: 6px; }
.track { height: 8px; background: #e8f0f7; border-radius: 99px; margin: 8px 0 6px; overflow: hidden; }
.fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--cyan), var(--bright)); }
.bar-src { font-size: 12px; color: var(--grey); }
.details { list-style: none; margin: 10px 0 0; padding: 8px 0 0; border-top: 1px dashed var(--line); }
.details li, .income li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 14px; }
.details li span:last-child { white-space: nowrap; color: var(--grey); }
.details .more { color: var(--grey); }

.income { list-style: none; margin: 0; padding: 4px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.income li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.income li:last-child { border: 0; } .income small { display: block; color: var(--grey); font-size: 12px; }

.channels { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 14px; overflow: hidden; font-size: 14px; }
.channels th { text-align: right; color: var(--grey); font-weight: 500; font-size: 12.5px; padding: 10px 12px; background: #f7fbff; }
.channels td { text-align: right; padding: 9px 12px; border-top: 1px solid var(--line); white-space: nowrap; }
.channels th:first-child, .channels td:first-child { text-align: left; white-space: normal; }
.up { color: var(--good); } .down { color: var(--bad); }

.warnings { margin-top: 18px; background: #fff7e6; border: 1px solid #f3dca8; border-radius: 14px; padding: 4px 14px; font-size: 13.5px; }
.ops { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.op { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.op:last-child { border: 0; } .op-main span { display: block; color: var(--grey); font-size: 12.5px; }
.op-sum { white-space: nowrap; font-weight: 600; } .op-sum.in { color: var(--good); }
.empty { color: var(--grey); }

.months { display: flex; gap: 6px; overflow-x: auto; padding: 12px 16px 2px; max-width: 720px; margin: 0 auto; }
.months button { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 99px;
  padding: 6px 12px; font: inherit; font-size: 13.5px; white-space: nowrap; cursor: pointer; }
.months button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.status { text-align: center; color: var(--grey); padding: 60px 16px; }
