.mam-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mam-progress.mam-overdue .fg {
  stroke: #e74c3c !important;
}
.mam-progress.mam-overdue .mam-text {
  fill: #e74c3c !important;
}
.mam-progress.mam-overdue {
  border: 2px solid #e74c3c;
  border-radius: 12px;
  padding: 8px;

}


.mam-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.mam-modal-inner {
  background: #fff;
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  text-align: center;
  max-width: 340px;
  width: 90%;
}
.mam-modal-inner h3 {
  margin-top: 0;
  font-size: 18px;
  color: #222;
}
.mam-modal-inner .btn {
  margin: 0 5px;
  padding: 8px 14px;
}

.mam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.mam-card {
  position: relative;
}

.mam-delete {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 18px;
  color: #bbb;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.mam-delete:hover {
  color: #e74c3c;
}



.btn.danger {
  background: #e74c3c;
  color: #fff;
}
.btn.danger:hover {
  background: #c0392b;
}


.card {
  background: #fff;
  border: 1px solid #e6ecf2;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.card h3 {
  font-size: 1.1rem;
  color: #0E2A47;
  margin-bottom: 4px;
}
.card p.small {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.3;
}
.card p.small[style] {
  font-size: 0.8rem;
  color: #777 !important;
}

.mam-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px 0;
}

.mam-ring {
  transform: rotate(-90deg);
}

.mam-ring circle {
  fill: none;
  stroke-width: 8;
}

.mam-ring circle.bg {
  stroke: #eee;
}

.mam-ring circle.fg {
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s ease, stroke 0.6s ease;
}


.mam-ring text {
  transform: rotate(90deg);
  fill: #0E2A47;
  font-size: 16px;
  font-weight: 600;
}

.mam-progress p.small {
  margin-top: 4px;
  font-size: 0.9rem;
}


.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.form-row input,
.form-row select {
  flex: 1 1 140px;
  padding: 8px 10px;
  border: 1px solid #d7dee6;
  border-radius: 8px;
  font-size: 14px;
}

.btn {
  background: #0E2A47;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: 0.2s;
}

.btn:hover {
  background: #15385e;
}

.small {
  font-size: 13px;
  color: #667;
  margin-top: 4px;
}

summary {
  cursor: pointer;
  color: #0E2A47;
  font-weight: 500;
}

.mam-badge {
  display: inline-block;
  background: #0E2A47;
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
}

/* 🔹 Pasek postępu przypomnień */
.mam-progress-track {
  width: 100%;
  height: 14px;
  background: #eee;
  border-radius: 7px;
  overflow: hidden;
  position: relative;
}

.mam-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 7px;
  transition: width 1.5s ease-in-out, background-color 0.4s ease;
}

/* 🔹 Filtry typów przypomnień */
.mam-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}

.mam-filter-btn {
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.mam-filter-btn:hover {
  background: #ddd;
}

.mam-filter-btn.active {
  background: #2ecc71;
  border-color: #27ae60;
  color: #fff;
  font-weight: 600;
}
