.r109-reports-page {
  min-width: 0;
}

.r109-shell {
  display: grid;
  gap: 15px;
  min-width: 0;
  padding-bottom: 110px;
}

.r109-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 27px 29px;
  border: 1px solid #12365d;
  border-radius: 21px;
  background: #081c37;
  box-shadow: 0 15px 40px rgba(20,33,58,.08);
}

.r109-hero > div > span {
  color: #b7ff2a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .15em;
}

.r109-hero h1 {
  margin: 7px 0 0;
  color: #fff !important;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -1.2px;
}

.r109-hero p {
  max-width: 720px;
  margin: 10px 0 0;
  color: #bec7ba;
  font-size: 12.5px;
  line-height: 1.55;
}

.r109-hero > button {
  align-self: flex-start;
  min-height: 39px;
  padding: 0 14px;
  border: 1px solid #294a6d;
  border-radius: 10px;
  color: #ffffff;
  background: #0d2b4d;
  cursor: pointer;
  font-weight: 800;
}

.r109-error,
.r109-notice {
  padding: 12px 14px;
  border-radius: 11px;
  font-size: 12px;
}

.r109-error {
  display: flex;
  justify-content: space-between;
  border: 1px solid #fecaca;
  color: #991b1b;
  background: #fff1f2;
}

.r109-error button {
  border: 0;
  color: inherit;
  background: none;
  cursor: pointer;
}

.r109-notice {
  border: 1px solid #d8eaa8;
  color: #496515;
  background: #f5fbe8;
}

.r109-toolbar {
  display: grid;
  gap: 11px;
  padding: 13px;
  border: 1px solid #e2e7ee;
  border-radius: 15px;
  background: #fff;
}

.r109-presets,
.r109-tabs,
.r109-export-bar > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.r109-presets button,
.r109-tabs button,
.r109-export-bar button,
.r109-custom button,
.r109-exports button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #dfe4eb;
  border-radius: 9px;
  color: #566276;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

.r109-presets button.active {
  border-color: #c6df8c;
  color: #3f581a;
  background: #f1f8e3;
}

.r109-custom {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 9px;
}

.r109-custom label {
  display: grid;
  gap: 4px;
}

.r109-custom label span {
  color: #7a8699;
  font-size: 10px;
  font-weight: 800;
}

.r109-custom input {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #dfe4eb;
  border-radius: 9px;
  color: #26344d;
  background: #fff;
}

.r109-custom button {
  border-color: #a7d34b;
  color: #23330e;
  background: #b7ff2a;
}

.r109-period-label {
  color: #7b8798;
  font-size: 10.5px;
}

.r109-tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 4px;
  border: 1px solid #e3e7ed;
  border-radius: 13px;
  background: #f6f8fb;
}

.r109-tabs button {
  flex: 0 0 auto;
  border-color: transparent;
  background: transparent;
}

.r109-tabs button.active {
  color: #17210d;
  background: #fff;
  box-shadow: 0 5px 16px rgba(20,33,58,.08);
}

.r109-export-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid #dfe5ec;
  border-radius: 15px;
  background: linear-gradient(90deg,#fbfcfd,#f5f8ee);
}

.r109-export-bar > div:first-child {
  display: grid;
  gap: 3px;
}

.r109-export-bar span,
.r109-panel header span,
.r109-exports header span {
  color: #819064;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
}

.r109-export-bar strong {
  color: #182640;
  font-size: 14px;
}

.r109-export-bar small {
  color: #7d8899;
  font-size: 10.5px;
}

.r109-export-bar button:first-child {
  border-color: #081c37;
  color: #b7ff2a;
  background: #081c37;
}

.r109-export-bar button:disabled {
  opacity: .55;
  cursor: wait;
}

.r109-content {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.r109-kpis {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
}

.r109-kpis.compact {
  grid-template-columns: repeat(5,minmax(0,1fr));
}

.r109-kpi {
  display: grid;
  align-content: start;
  min-height: 108px;
  padding: 15px;
  border: 1px solid #e3e8ef;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20,33,58,.04);
}

.r109-kpi.lime {
  border-color: #d8e9b4;
  background: linear-gradient(145deg,#fff,#f5faec);
}

.r109-kpi small {
  color: #748096;
  font-size: 10px;
  font-weight: 800;
}

.r109-kpi strong {
  margin-top: 9px;
  color: #15243e;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -.55px;
}

.r109-kpi span {
  margin-top: 6px;
  color: #8994a5;
  font-size: 10px;
  line-height: 1.4;
}

.r109-two {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 13px;
}

.r109-panel {
  min-width: 0;
  padding: 17px;
  border: 1px solid #e2e7ee;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(20,33,58,.04);
}

.r109-panel header {
  margin-bottom: 14px;
}

.r109-panel h2,
.r109-exports h2 {
  margin: 5px 0 0;
  color: #172640;
  font-size: 15px;
}

.r109-chart {
  position: relative;
}

.r109-chart svg {
  display: block;
  width: 100%;
}

.r109-chart svg line {
  stroke: #e6eaf0;
}

.r109-chart svg polyline {
  fill: none;
  stroke: #8cbd2c;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.r109-chart svg circle.r109-chart-dot {
  fill: #b7ff2a;
  stroke: #526d18;
  stroke-width: 2;
  transition:
    r .15s ease,
    filter .15s ease;
}

.r109-chart svg circle.r109-chart-hit {
  fill: transparent;
  stroke: transparent;
  stroke-width: 0;
  cursor: crosshair;
  pointer-events: all;
}

.r109-chart svg circle.r109-chart-hit:focus {
  outline: none;
  stroke: rgba(132, 185, 31, .36);
  stroke-width: 2;
}

.r109-chart-tooltip {
  position: absolute;
  z-index: 8;

  display: grid;
  gap: 3px;

  min-width: 154px;
  max-width: 230px;

  padding: 10px 12px;

  border:
    1px solid
    rgba(183, 255, 42, .27);

  border-radius: 10px;

  color: #f4f7f0;
  background:
    rgba(11, 13, 8, .96);

  box-shadow:
    0 12px 28px
    rgba(11, 21, 7, .18);

  pointer-events: none;

  opacity: 0;

  transform:
    translate(
      -50%,
      calc(-100% - 13px)
    );

  transition:
    opacity .12s ease,
    transform .12s ease;
}

.r109-chart-tooltip.show {
  opacity: 1;
}

.r109-chart-tooltip.show.below {
  transform:
    translate(
      -50%,
      14px
    );
}

.r109-chart-tooltip > span {
  color: #aebaa7;
  font-size: 9.5px;
  font-weight: 700;
}

.r109-chart-tooltip > strong {
  color: #ffffff;
  font-size: 12px;
  line-height: 1.35;
}

.r109-chart-tooltip > small {
  color: #b7ff2a;
  font-size: 9.5px;
  font-weight: 800;
}

.r109-chart-axis {
  display: flex;
  justify-content: space-between;
  color: #8a95a5;
  font-size: 9.5px;
}

.r109-signals {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
}

.r109-signals > div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 11px;
  background: #f7f9fb;
}

.r109-signals small {
  color: #788499;
  font-size: 10px;
}

.r109-signals strong {
  color: #192840;
  font-size: 13px;
}

.r109-bars {
  display: grid;
  gap: 11px;
}

.r109-bar {
  display: grid;
  gap: 5px;
}

.r109-bar > div {
  display: flex;
  justify-content: space-between;
  color: #657287;
  font-size: 11px;
}

.r109-bar > div strong {
  color: #1b2941;
}

.r109-bar > b {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: #edf1f5;
}

.r109-bar > b i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg,#91c92a,#b7ff2a);
}

.r109-table-wrap {
  overflow-x: auto;
}

.r109-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.r109-table th,
.r109-table td {
  padding: 10px;
  border-bottom: 1px solid #edf0f4;
  text-align: left;
  font-size: 11px;
}

.r109-table th {
  color: #748095;
  background: #f8fafc;
  font-size: 9.5px;
  font-weight: 900;
}

.r109-table td {
  color: #556176;
}

.r109-table td strong {
  color: #182740;
}

.r109-pill {
  padding: 4px 7px;
  border-radius: 99px;
  color: #416019;
  background: #eff8df;
  font-size: 9.5px;
  font-weight: 800;
}

.r109-support-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 11px;
}

.r109-support {
  display: flex;
  gap: 11px;
  padding: 14px;
  border: 1px dashed #d6dde6;
  border-radius: 13px;
  background: #fafbfc;
}

.r109-support > i {
  display: grid;
  place-items: center;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  color: #5d772a;
  background: #eff6e1;
  font-style: normal;
  font-weight: 900;
}

.r109-support strong {
  color: #1a2941;
  font-size: 11.5px;
}

.r109-support p {
  margin: 4px 0 0;
  color: #768297;
  font-size: 10.5px;
  line-height: 1.5;
}

.r109-team-note {
  padding: 13px 15px;
  border-left: 4px solid #b7ff2a;
  border-radius: 10px;
  color: #59667b;
  background: #f7f9f2;
}

.r109-team-note strong {
  color: #192840;
  font-size: 11.5px;
}

.r109-team-note p {
  margin: 4px 0 0;
  font-size: 10.5px;
}

.r109-empty,
.r109-loading {
  display: grid;
  place-items: center;
  gap: 7px;
  padding: 30px 18px;
  color: #7d8899;
  text-align: center;
}

.r109-empty strong,
.r109-loading strong {
  color: #1a2941;
  font-size: 12px;
}

.r109-empty p {
  margin: 0;
  max-width: 460px;
  font-size: 10.5px;
}

.r109-loading {
  min-height: 240px;
  border: 1px solid #e2e7ee;
  border-radius: 17px;
  background: #fff;
}

.r109-loading i {
  width: 26px;
  height: 26px;
  border: 3px solid #e3e8df;
  border-top-color: #8cbd2d;
  border-radius: 50%;
  animation: r109-spin .75s linear infinite;
}

@keyframes r109-spin {
  to {
    transform: rotate(360deg);
  }
}

.r109-exports {
  overflow: hidden;
  border: 1px solid #e2e7ee;
  border-radius: 17px;
  background: #fff;
}

.r109-exports > header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border-bottom: 1px solid #edf0f3;
}

.r109-exports header p {
  margin: 4px 0 0;
  color: #7d8999;
  font-size: 10.5px;
}

.r109-export-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border-bottom: 1px solid #eef1f4;
}

.r109-export-row > div {
  display: grid;
  gap: 3px;
}

.r109-export-row strong {
  color: #1a2941;
  font-size: 11px;
}

.r109-export-row small {
  color: #8a95a5;
  font-size: 9.5px;
}

.r109-export-row > span {
  padding: 4px 7px;
  border-radius: 99px;
  color: #806118;
  background: #fff4d5;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.r109-export-row > span.ready {
  color: #426019;
  background: #eff8df;
}

.r109-export-empty {
  padding: 24px;
  color: #7e8999;
  font-size: 10.5px;
  text-align: center;
}

@media (max-width:1180px) {
  .r109-kpis,
  .r109-kpis.compact {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .r109-two {
    grid-template-columns: 1fr;
  }
}

@media (max-width:760px) {
  .r109-hero,
  .r109-export-bar,
  .r109-exports > header {
    flex-direction: column;
    align-items: stretch;
  }

  .r109-hero {
    padding: 22px 18px;
  }

  .r109-export-bar > div:last-child {
    display: grid;
    grid-template-columns: repeat(3,1fr);
  }

  .r109-support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width:520px) {
  .r109-kpis,
  .r109-kpis.compact,
  .r109-signals {
    grid-template-columns: 1fr;
  }

  .r109-custom {
    display: grid;
  }

  .r109-custom input,
  .r109-custom button {
    width: 100%;
  }

  .r109-export-row {
    grid-template-columns: 1fr auto;
  }

  .r109-export-row > button {
    grid-column: 1 / -1;
  }
}

/* ==========================================================
   CODSHIPX_AI_R109_C3_R1_FLOATING_CONTROL_SAFE_LANE

   Desktop Reports only.
   Reserve a right-side visual lane for fixed Live Agents / Codi
   launchers without moving or mutating those global controls.
   ========================================================== */
@media (min-width: 1280px) {
  .r109-reports-page .r109-shell {
    padding-right: 108px;
  }
}
