.mc-root,
.mc-root * {
  box-sizing: border-box;
}

.mc-root {
  color: #0a0f14;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Noto Sans, Arial, sans-serif;
}

/* Wrapper + header */

.mc-root .mc-root-wrap {
  max-width: 980px;
  margin: 20px auto;
  padding: 0 12px;
}

.mc-root .mc-root-header {
  margin-bottom: 12px;
}

.mc-root .mc-root-title {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .2px;
  color: #0f172a;
}

.mc-root .mc-root-desc {
  margin: 0 16px 16px 0;
  opacity: .8;
  font-size: 14px;
}

/* Grid + cards */

.mc-root .mc-root-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.mc-root .mc-root-card {
  grid-column: span 12;
  background: #ffffff;
  border: 1px solid #e5e8ee;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

@media (min-width: 900px) {
  .mc-root .mc-root-card {
    grid-column: span 6;
  }
}

/* Είσοδοι φόρμας */

.mc-root .mc-root-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.mc-root .mc-root-row label {
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 600;
}

.mc-root .mc-root-row input,
.mc-root .mc-root-row select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e5e8ee;
  outline: none;
  background: #fff;
  width: 100%;
}

.mc-root .mc-root-row input:focus,
.mc-root .mc-root-row select:focus {
  box-shadow: 0 0 0 3px rgba(109, 40, 217, .18);
  border-color: #c4b5fd;
}

.mc-root .mc-root-hint {
  font-size: 12px;
  opacity: .7;
  margin-top: 4px;
}

/* Κουμπιά */

.mc-root .mc-root-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.mc-root .mc-root-btn {
  cursor: pointer;
  border: 1px solid #6d28d9;
  background: #6d28d9;
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  transition: filter .15s;
}

.mc-root .mc-root-btn.ghost {
  background: #fff;
  color: #6d28d9;
}

.mc-root .mc-root-btn:hover {
  filter: brightness(1.05);
}

/* KPI tiles */

.mc-root .mc-root-kpi {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mc-root .mc-root-tile {
  background: #f8fafc;
  border: 1px solid #e5e8ee;
  border-radius: 16px;
  padding: 14px;
}

.mc-root .mc-root-kh {
  font-size: 12px;
  opacity: .8;
  margin-bottom: 4px;
}

.mc-root .mc-root-kv {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
}

/* Πίνακας */

.mc-root .mc-root-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 13px;
}

.mc-root .mc-root-table td {
  border-bottom: 1px dashed #e3e8f0;
  padding: 8px 6px;
  text-align: left;
  vertical-align: top;
}

/* Pills ρίσκου */

.mc-root .mc-root-pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

.mc-root .mc-root-pill.none {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.mc-root .mc-root-pill.low {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fed7aa;
}

.mc-root .mc-root-pill.high {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

/* Responsive */

@media (max-width: 600px) {
  .mc-root .mc-root-wrap {
    padding: 0 12px 20px;
  }

  .mc-root .mc-root-title {
    font-size: 22px;
    line-height: 1.25;
  }

  .mc-root .mc-root-desc {
    font-size: 13px;
  }

  .mc-root .mc-root-card {
    padding: 14px;
  }

  .mc-root .mc-root-kpi {
    grid-template-columns: 1fr;
  }

  .mc-root .mc-root-actions {
    flex-direction: column;
  }

  .mc-root .mc-root-btn {
    width: 100%;
    text-align: center;
  }

  .mc-root .mc-root-table {
    font-size: 12px;
  }
}