﻿.mpc-module {
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background-color: #fafafa;
}

.mpc-module-header {
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  background-color: #f1f1f1;
  padding: 6px;
  border-radius: 3px;
}

.mpc-module-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

  .mpc-module-title span {
    font-size: 16px;
  }

.mpc-feature-row {
  display: flex;
  align-items: center;
  padding: 6px;
  border-bottom: 1px dashed #f1f1f1;
}

.mpc-feature-group {
  width: 400px;
  font-weight: bold;
  font-size: 13px;
  color: dimgray;
}

.mpc-feature-name {
  width: 400px;
  font-weight: bold;
  font-size: 13px;
}

  .mpc-feature-name.grouped {
    width: 400px;
    font-weight: bold;
    font-size: 13px;
    padding-left: 12px;
  }

.mpc-permissions {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.mpc-switch {
  position: relative !important;
  display: inline-block !important;
  width: 40px !important;
  height: 22px !important;
}

  .mpc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }

.mpc-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 22px;
}

  .mpc-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
  }

.mpc-switch input:checked + .mpc-slider {
  background-color: #4CAF50;
}

  .mpc-switch input:checked + .mpc-slider:before {
    transform: translateX(18px);
  }

.mpc-switch input:disabled + .mpc-slider {
  background-color: #aaa;
  cursor: not-allowed;
}

  .mpc-switch input:disabled + .mpc-slider:before {
    background-color: #eee;
  }

.mpc-switch input:disabled:checked + .mpc-slider {
  background-color: #9DC183;
  cursor: not-allowed;
}

.mpc-permission-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
