.memo-idc-widget {
  border: 1px solid #d8dee8;
  border-radius: 16px;
  padding: 20px;
  background: transparent;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  color: #1f2937;
}

.memo-idc-header h2 {
  margin: 0;
  font-size: 1.6rem;
}

.memo-idc-title {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: baseline;
}

.memo-idc-title-primary {
  font-family: 'Raleway', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  font-size: 32px;
  color: #3d5165 !important;
  letter-spacing: 0.04em;
}

.memo-idc-title-secondary {
  font-family: 'Raleway', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 32px;
  color: #8dbc3a;
  letter-spacing: 0.04em;
}

.memo-idc-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.memo-idc-card {
  border: 1px solid #d8dee8;
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
}

.memo-idc-card-label {
  display: block;
  color: #6b7280;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.memo-idc-chart-shell {
  height: 420px;
  margin-top: 20px;
}

.memo-idc-chart-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.memo-idc-zoom-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.memo-idc-zoom-button,
.memo-idc-reset-button {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #1f2937;
  padding: 8px 14px;
  font: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.memo-idc-zoom-button:hover,
.memo-idc-reset-button:hover,
.memo-idc-zoom-button.is-active {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.memo-idc-table-shell {
  margin-top: 20px;
  overflow-x: auto;
}

.memo-idc-table-shell table {
  width: 100%;
  border-collapse: collapse;
}

.memo-idc-table-shell th,
.memo-idc-table-shell td {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 8px;
  text-align: left;
}

.memo-idc-table-shell th {
  color: #374151;
  background: #f8fafc;
}

.memo-idc-error {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  border-radius: 12px;
  padding: 14px;
}

@media (max-width: 900px) {
  .memo-idc-summary {
    grid-template-columns: 1fr;
  }

  .memo-idc-chart-toolbar {
    align-items: stretch;
  }

  .memo-idc-chart-shell {
    height: 320px;
  }
}
