/* My Data & Privacy dashboard (my-data.html) */

.mydata-main h2 {
  margin-top: 32px;
}

.mydata-section {
  margin-bottom: 8px;
}

/* Consents */
.mydata-consents {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: #f6f5f1;
  border: 1px solid #e2e0da;
  border-radius: 12px;
}

.mydata-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.92rem;
}

.mydata-consent-row input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: #1f7a4d;
  flex: 0 0 auto;
}

/* Count cards */
.mydata-counts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.mydata-count-card {
  padding: 14px;
  border: 1px solid #e2e0da;
  border-radius: 12px;
  background: #fff;
}

.mydata-count-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f7a4d;
}

.mydata-count-label {
  font-size: 0.8rem;
  color: #4a564f;
  margin-top: 2px;
  line-height: 1.3;
}

/* Tabs */
.mydata-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.mydata-tab {
  border: 1px solid #cfd6d0;
  background: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: #22302a;
}

.mydata-tab.is-active {
  background: #1f7a4d;
  border-color: #1f7a4d;
  color: #fff;
}

/* Rows */
.mydata-list {
  border: 1px solid #e2e0da;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.mydata-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #f0efe9;
  font-size: 0.88rem;
}

.mydata-row:last-child {
  border-bottom: none;
}

.mydata-row-main {
  font-weight: 600;
}

.mydata-row-date {
  color: #7a847d;
  font-size: 0.78rem;
  white-space: nowrap;
}

.mydata-empty {
  padding: 18px;
  color: #7a847d;
  font-size: 0.9rem;
}

/* Verdict / list-type pills */
.mydata-verdict {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #eef0ee;
  color: #4a564f;
  justify-self: start;
}

.mydata-verdict-safe,
.mydata-list-safe,
.mydata-list-favorite {
  background: #e2f3e9;
  color: #1f7a4d;
}

.mydata-verdict-unsafe,
.mydata-list-avoid {
  background: #fbe4e4;
  color: #b03434;
}

.mydata-verdict-uncertain {
  background: #fdf1dc;
  color: #a4700f;
}

/* Buttons */
.mydata-actions {
  margin: 12px 0 18px;
}

.mydata-btn {
  display: inline-block;
  border: 1px solid #cfd6d0;
  background: #fff;
  color: #22302a;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.mydata-btn-primary {
  background: #1f7a4d;
  border-color: #1f7a4d;
  color: #fff;
}

.mydata-btn-primary:hover {
  background: #196540;
}

.mydata-erase {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mydata-btn-danger {
  border-color: #e5b8b8;
  color: #b03434;
}

.mydata-btn-danger:hover:not(:disabled) {
  background: #fbe4e4;
}

.mydata-btn-danger:disabled {
  opacity: 0.45;
  cursor: default;
}

@media (max-width: 620px) {
  .mydata-row {
    grid-template-columns: 1fr auto;
  }
  .mydata-row span:nth-child(2),
  .mydata-row span:nth-child(3):not(.mydata-verdict) {
    display: none;
  }
}
