/* ==========================================================================
   HIRENTRA v0.8.0 BUILD 18 PHASE 6
   MONTHLY HIRE EXPOSURE
   ========================================================================== */

.monthly-exposure-section {
  margin: 16px 0;
  padding: 18px;
  border: 1px solid rgba(96, 165, 250, 0.20);
  border-radius: 18px;
  background: var(--panel, #172033);
}

.monthly-exposure-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.monthly-exposure-heading span {
  display: block;
  margin-bottom: 4px;
  color: #60a5fa;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.monthly-exposure-heading h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
}

.monthly-exposure-heading p,
.monthly-exposure-note {
  margin: 4px 0 0;
  color: var(--muted, #94a3b8);
  font-size: 0.72rem;
  line-height: 1.35;
}

.monthly-exposure-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}

.monthly-exposure-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(96, 165, 250, 0.16);
  border-radius: 14px;
  background: rgba(96, 165, 250, 0.045);
}

.monthly-exposure-card.current {
  border-color: rgba(255, 193, 7, 0.34);
  background: rgba(255, 193, 7, 0.07);
}

.monthly-exposure-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 18px;
}

.monthly-exposure-card-top > span {
  overflow: hidden;
  color: #60a5fa;
  font-size: 0.68rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
}

.monthly-exposure-card.current .monthly-exposure-card-top > span {
  color: #ffc107;
}

.monthly-exposure-card-top b {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 193, 7, 0.13);
  color: #ffc107;
  font-size: 0.58rem;
  font-weight: 900;
}

.monthly-exposure-card > strong {
  display: block;
  margin-top: 7px;
  font-size: 1.05rem;
  font-weight: 900;
  white-space: nowrap;
}

.monthly-exposure-bar {
  height: 5px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
}

.monthly-exposure-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #60a5fa;
}

.monthly-exposure-card.current .monthly-exposure-bar i {
  background: #ffc107;
}

.monthly-exposure-card > small,
.monthly-exposure-card > em {
  display: block;
  overflow: hidden;
  margin-top: 7px;
  color: var(--muted, #94a3b8);
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monthly-exposure-card > em {
  margin-top: 3px;
  font-size: 0.60rem;
  font-weight: 500;
}

.monthly-exposure-note {
  margin-top: 10px;
  font-size: 0.64rem;
}


/* Build 18 light-theme alignment. */
html[data-theme="light"] .monthly-exposure-section {
  color: #0f172a;
  background: #ffffff;
  border-color: rgba(59, 130, 246, 0.14);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .monthly-exposure-card {
  background: #f8fafc;
  border-color: rgba(59, 130, 246, 0.12);
}

html[data-theme="light"] .monthly-exposure-card.current {
  background: #fffbeb;
  border-color: rgba(180, 129, 0, 0.28);
}

html[data-theme="light"] .monthly-exposure-bar {
  background: rgba(15, 23, 42, 0.08);
}

@media (max-width: 1180px) {
  .monthly-exposure-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .monthly-exposure-section {
    padding: 14px;
  }

  .monthly-exposure-cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 3px;
  }

  .monthly-exposure-card {
    flex: 0 0 150px;
    scroll-snap-align: start;
  }
}
