* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Roboto, sans-serif;
  background: white;
  color: #222;
  padding: 20px;
}

.page {
  max-width: 82vw;
  margin: auto;
}

header {
  margin-bottom: 30px;
}

header h1 {
  font-size: 2rem;
  margin-bottom: 5px;
}

.funnel-col {
    border-right: 2px dotted grey;
}

header h2 {
    font-size: 16px;
    color: #555;
    background: #f4f4f4;
    width: 10%;
    padding: 5px;
    border-radius: 2px;
    box-shadow: 2px 2px 4px grey;
    text-align: center;
}

.footer_row .label {
    text-align: end;
}

th img {
    width: 50%;
}

main {
    display: flex;
    gap: 2px;
    border-bottom: 2px solid #1565c0;
    position: relative;
    margin-bottom: 8px;
}


section {
  background: white;
  /* border-radius: 8px; */
  padding: 10px;
  flex: 1;
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.1); */
      padding-bottom: 6%;

}

.subrow {
    font-size: 10px;
    color: grey;
}

section h3 {
    margin-bottom: 12px;
    border-bottom: 2px solid #1565c0;
    padding-bottom: 8px;
    font-size: 16px;
    color: #444;
}

.funnel, .line-chart {
    width: 48%;
    display: inline-block;
}

.rightFunnel{
     width: 100%;
}

.rightFunnel .bar.full {
    width: 14%;
    margin: 0 2px;
        color: black;

}

.rightFunnel .bar.mid {
    width: 12%;
    margin: 0 8.5px;
}

.rightFunnel .bar.lighter {
    width: 10%;
    margin: 0 15px;
}

.rightFunnel .bar.lightest {
    width: 8%;
    margin: 0 22px;
}

.rightFunnel .funnel-row span {
    width: 90px;
    font-size: 12px;
    border-bottom: 1px solid #dfdfdf;
    height: 50px;
    padding: 1%;
}

.base-note-row {
    display: flex;
    align-items: center;
}

.base-note-row span {
    width: 90px;
    font-size: 12px;
    padding: 1%;
}

.place-row {
    display: flex;
    justify-content: space-around;
}

.place-row span {
    font-weight: 600;
    height: 60px;
      display: flex;
    justify-content: center;
    align-items: center;
}

.rightFunnel .base-note {
    width: 15% !important;
    font-size: 10px;
    display: flex;
    justify-content: space-evenly;
}

.rightFunnel .funnel-row{
 display: flex;
    align-items: center;
    margin-bottom: 5px;
    width: 100%;
    justify-content: center;
}

.data_table{
    display: none;
}

.line-chart .chart {
    height: 200px;
    border-bottom: 1px solid #1565c0;
}

.line-chart {
   vertical-align: top;
}

.line-chart .foot > span {
    margin: 0 10%;
    font-size: 12px;
}

.place img {
    width: 40px;
    height: 40px;
    border-radius: 60px;
    box-shadow: 2px 2px 5px -2px black;
}

.place {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 10px 0px;
    font-weight: 600;
}


.line-chart .foot {
    vertical-align: bottom;
    text-align: center;
}

.line-chart .head span {
    margin: 0 6%;
    font-weight: 600;
}
.line-chart .head {
    text-align: center;
}

/* Funnel column */
.funnel-row {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    width: 100%;
}

.funnel-row span {
    width: 180px;
    font-size: 12px;
    border-bottom: 1px solid #dfdfdf;
    height: 50px;
    padding: 3%;
}

.footer_row {
    position: absolute;
    bottom: 0;
    display: flex;
    font-size: 10px;
    width: 40%;
        justify-content: end;

}

.footer_row .green{
    color: #00af50;
}


.footer_row .red{
    color: #ff1717;
}

.bar {
    height: 28px;
    background: #1976d2;
    color: white;
    /* border-radius: 4px; */
    padding: 0 12px;
    line-height: 28px;
    flex-shrink: 0;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bar.full {
    width: 50%;
    background: #c8deff;

}

.bar.mid {
    background: #70a7ff;
    width: 46%;
    margin: 0 2%;
}


.bar.lighter
 {
    background: #156dff;
    width: 40%;
    margin: 0 4%;
}

.bar.lightest {
    background: #0046b8;
    width: 32%;
    margin: 0 8%;
}


.base-note {
    width: 82% !important;
    font-size: 10px;
    display: flex;
    justify-content: right;
}
/* Country column */
.country-col table {
  width: 100%;
  border-collapse: collapse;
}

.country-col th,
.country-col td {
  text-align: center;
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.country-col thead th {
  background: #1976d2;
  color: white;
  font-size: 0.9rem;
}

.country-col td img {
  width: 24px;
  height: 16px;
  object-fit: cover;
}

.bar-cell {
  position: relative;
  font-weight: 600;
  /* color: #fff; */
}

.bar-cell.mid { background: #1565c0; }
.bar-cell.lighter { background: #1e88e5; }
.bar-cell.lightest { background: #42a5f5; }

/* Apply subtle bars behind percentage values */
.bar-cell {
  background: transparent;
}

.bar-cell.mid::before,
.bar-cell.lighter::before,
.bar-cell.lightest::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  border-radius: 3px;
  opacity: 0.4;
  z-index: -1;
}

.bar-cell.mid::before     { width: 92%;  background: #1565c0; }
.bar-cell.lighter::before { width: 86%;  background: #1e88e5; }
.bar-cell.lightest::before{ width: 78%;  background: #42a5f5; }

.base-note-country {
  margin-top: 12px;
  font-size: 0.82rem;
  color: #777;
}
