.permission_title {
    background-color: rgba(0, 0, 0, 0.1);
}

.form-check:not(.form-switch) {
    cursor: pointer;
    
    .form-check-input {
        margin-top: 0;
        min-width: 1.5rem;
        min-height: 1.5rem;
        width: 1.5rem;
        height: 1.5rem;
        background-color: var(--card-color);
        cursor: pointer;
        position: relative;
        border-width: 2px;
        border-radius: 5px !important;
    
        &:focus {
            outline: 0;
            box-shadow: none;
        }
    
    
    
        &:checked {
            border-color: var(--primary);
            background-color: transparent;
    
            &[type='checkbox'] {
                background-image: none !important;
            }
    
            &[type='radio'] {
                background-image: none !important;
            }
    
            &::before {
                content: "";
                position: absolute;
                top: -2px;
                right: -3px;
                height: 10px;
                width: 8px;
                background-color: var(--card-color);
            }
    
            &::after {
                content: "";
                position: absolute;
                top: -2px;
                right: 3px;
                display: inline-block;
                transform: rotate(43deg);
                height: 15px;
                width: 7px;
                border-bottom: 3px solid var(--primary);
                border-right: 3px solid var(--primary);
            }
        }
    }
    
    .form-check-label {
        cursor: pointer;
        line-height: 1;
        display: inline-flex;
        align-items: center;
    }
}

.permission_setting_button:hover {
    color: #777;
}

[theme="dark"] {
  .form-check:not(.form-switch){
    .form-check-input {
        margin-top: 0;
        min-width: 1.5rem;
        min-height: 1.5rem;
        width: 1.5rem;
        height: 1.5rem;
        background-color: var(--card-color);
        cursor: pointer;
        position: relative;
        border-radius: 5px !important;
        border: 2px solid var(--font-color);

        &:focus {
            outline: 0;
            box-shadow: none;
        }

        &:checked {
            border-color: var(--primary);
            background-color: transparent;

            &[type='checkbox'] {
                background-image: none;
            }

            &::before {
                content: "";
                position: absolute;
                top: -2px;
                right: -3px;
                height: 10px;
                width: 8px;
                background-color: var(--card-color);
            }

            &::after {
                content: "";
                position: absolute;
                top: -2px;
                right: 3px;
                display: inline-block;
                transform: rotate(43deg);
                height: 15px;
                width: 7px;
                border-bottom: 3px solid var(--primary);
                border-right: 3px solid var(--primary);
            }
        }
    }

  }
}