.msp-directory-wrap {
  background: #f5f8fc;
  padding: 24px;
  border-radius: 14px;
  font-family: Arial, sans-serif;
}

.msp-directory-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.msp-directory-title {
  margin: 0;
  font-size: 28px;
  color: #123b73;
}

.msp-directory-subtitle {
  margin: 6px 0 0;
  color: #5b6b7a;
}

.msp-btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.msp-btn-primary {
  background: #1557b0;
  color: #fff;
}

.msp-btn-primary:hover {
  background: #0f4690;
}

.msp-btn-secondary {
  background: #e8eef7;
  color: #123b73;
}

.msp-btn-secondary:hover {
  background: #dce7f4;
}

.msp-alert {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-weight: 600;
}

.msp-alert-success {
  background: #e7f7ea;
  color: #17653a;
  border: 1px solid #bde5c5;
}

.msp-alert-error {
  background: #fdeaea;
  color: #8b1e1e;
  border: 1px solid #f3c3c3;
}

.msp-form-wrap {
  background: #ffffff;
  border: 1px solid #d9e4f2;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 22px;
}

.msp-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.msp-form-header h3 {
  margin: 0;
  color: #123b73;
}

.msp-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 16px;
}

.msp-field {
  display: flex;
  flex-direction: column;
}

.msp-field-full {
  grid-column: 1 / -1;
}

.msp-field label {
  margin-bottom: 6px;
  font-weight: 700;
  color: #203040;
}

.msp-field input,
.msp-field select,
.msp-field textarea {
  padding: 10px 12px;
  border: 1px solid #c8d6e8;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
}

.msp-field textarea {
  resize: vertical;
}

.msp-form-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.msp-filter-bar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid #d9e4f2;
  padding: 16px;
  border-radius: 12px;
}

.msp-filter-item input,
.msp-filter-item select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c8d6e8;
  border-radius: 8px;
  background: #fff;
}

.msp-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.msp-region-section {
  margin-bottom: 28px;
}

.msp-region-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f3f86;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid #d7e4f7;
  text-transform: uppercase;
}

.msp-service-block {
  margin-bottom: 20px;
}

.msp-service-title {
  font-size: 17px;
  font-weight: 700;
  color: #244e85;
  margin-bottom: 12px;
  background: #eaf2fd;
  padding: 10px 14px;
  border-radius: 8px;
}

.msp-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
}

.msp-contact-card {
  background: #fff;
  border: 1px solid #d9e4f2;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(18, 59, 115, 0.05);
}

.msp-contact-card p {
  margin: 8px 0;
  color: #33485e;
  line-height: 1.45;
}

.msp-contact-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
  margin-bottom: 10px;
}

.msp-contact-header h4 {
  margin: 0;
  color: #123b73;
  font-size: 18px;
}

.msp-status {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.msp-status.active {
  background: #e7f7ea;
  color: #17653a;
}

.msp-status.inactive {
  background: #fdeaea;
  color: #8b1e1e;
}

.msp-card-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.msp-card-actions .msp-delete-form {
  margin: 0;
}

.msp-card-actions .msp-delete-form button {
  margin: 0;
}
.msp-empty-state {
  background: #fff;
  border: 1px dashed #c8d6e8;
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  color: #5b6b7a;
  font-weight: 600;
}

@media (max-width: 900px) {
  .msp-filter-bar {
    grid-template-columns: 1fr;
  }

  .msp-form-grid {
    grid-template-columns: 1fr;
  }
}